/*
Theme Name:   Sasico Child
Theme URI:    https://sasico.pikathemes.site/
Description:  Make your modifications to [Parent Theme] in this Sasico child theme.
Author:       PikaThemes
Author URI:   http://pikathemes.site/
Template:     sasico
Version:      1.1
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  sasico-child
*/

/* =Theme customization starts here
------------------------------------------------------- */
.toc-accordion {
    border: 1px solid #e0e0e0;
    margin: 0 0 10px 0;
    border-radius: 4px;
    overflow: hidden
}

.toc-header {
    background: #2c3e50;
    color: #fff;
    padding: 12px 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative
}

.toc-header::after {
    content: '\25BC';
    position: absolute;
    right: 15px;
    transition: transform 0.3s;
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f9f9f9
}

.toc-accordion.active .toc-header::after {
    transform: rotate(180deg)
}

.toc-accordion.active .toc-content {
    max-height: 1000px
}

.toc-content ul {
    list-style: none;
    padding: 0 0;
    margin: 0
}

.toc-content li {
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0
}

.toc-content li:last-child {
    border-bottom: none
}

.toc-content a {
    text-decoration: none;
    color: #3498db;
    display: block;
    transition: all 0.2s
}

.toc-content a:hover {
    color: #e74c3c;
    padding-left: 5px
}

.toc-content .submenu {
    padding-left: 20px
}

.span-reading-time.rt-reading-time {
    float: left;
}
.home .page-header.ph-default {
    max-height: 200px;
}
.sasi-breadcrumbs {
    margin: 50px 0;
}

.page-pagination li > span.page-numbers.dots {
    background-color: #fff;
    color: #000;
    border: none;
}
.pagination-wrapper-dpk {
    text-align: center;;
}
.pagination-wrapper-dpk .wc-pagination{
    display: inline-block;
}
#site-logo img {
    height: 70px;
}
.main-navigation > ul{
    border: none !important;
}
.sasi-mainbar-row {
    align-items: center;
}

.sasi-mainbar-row .header-download-col {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: none;
}

.sasi-mainbar-row > .header-download-col {
    align-items: center;
}

.header-download-btn,
.header_mobile .download_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #007bff;
    color: #fff !important;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-download-btn {
    height: 38px;
    min-height: 0;
    padding: 0 16px;
    font-size: 15px;
    align-self: center;
}

.header-download-btn:hover,
.header-download-btn:focus,
.header_mobile .download_btn:hover,
.header_mobile .download_btn:focus {
    background: #0056b3;
    color: #fff !important;
    text-decoration: none;
}

.header-download-btn:focus,
.header_mobile .download_btn:focus {
    outline: 2px solid rgba(0, 123, 255, 0.35);
    outline-offset: 3px;
}
.sasi-main-header {
    border: 1px solid #dee2e6;
}

.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999 !important;
    background: #fff;
    box-shadow: 2px 2px 15px 0 rgba(42, 67, 113, 0.15);
}

body {
    padding-top: 92px;
}

body.admin-bar .site-header {
    top: 32px;
}

.reading-time-views {
    padding: 5px 2px;
    margin-top: 10px;
    border-bottom: 1px solid #efeeee;
    border-top: 1px solid #efeeee;
    font-size: 12px;
}
.pvc_stats{
    padding: 0 !important;
}
.reading-time-views .pvc_stats{
    margin: 0;
    display: inline-block;
    
}
body.blog, body.archive, body.search, body.single-post.wp-singular {
    background-image: url(./images/bg-pheader-blog.svg);
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: scroll;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -ms-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
}
body.single-post.wp-singular .page-header.ph-default {
    max-height: initial;
}
body.single-post .sasi-main-header {
    border-bottom: 0;
}
.dpk-featured-img {
    margin-bottom:20px ;
}
.textwidget .sasi-social-icons__wrapper>a{margin-right: 10px;}
.textwidget .sasi-social-icons__wrapper>a:last-child{margin-right: 0;}

/*Newsletter*/
.es_subscription_form input[type="email"], .es_subscription_form input[type="text"] {
    width: 100% !important;
}

.single-post .entry-content {
    padding: 60px 0 130px;
}

.header_mobile {
    position: relative;
    padding: 14px 14px 10px;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.header_mobile > .container {
    position: relative;
    padding: 0;
}

.header_mobile .mobile_header_row {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    min-height: 44px;
}

.header_mobile .mobile_header_left,
.header_mobile .mobile_download {
    flex: 0 0 112px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header_mobile .mobile_header_left {
    justify-content: flex-start;
}

.header_mobile .mobile_download {
    justify-content: flex-end;
}

.header_mobile .mobile_logo {
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    z-index: 1;
}

.header_mobile .mobile_logo img {
    display: block;
    width: auto;
    height: 42px;
    max-height: 42px;
}

.header_mobile .download_btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.header_mobile #mmenu_toggle {
    position: relative;
    top: auto;
    right: auto;
    width: 28px;
    height: 22px;
    margin: 0;
    transform: none;
}

.header_mobile #mmenu_toggle button,
.header_mobile #mmenu_toggle button::before,
.header_mobile #mmenu_toggle button::after {
    background: #111;
}

.header_mobile .mmenu_wrapper {
    margin-top: 10px;
}

@media (min-width: 1025px) {
    .header_mobile {
        display: none;
    }
}

@media only screen and (max-width: 1024px) {
    body {
        padding-top: 69px;
    }

    .header_mobile {
        position: relative;
        width: 100%;
    }
}

@media only screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media only screen and (max-width: 600px) {
    body.admin-bar .site-header {
        top: 0;
    }
}

@media only screen and (max-width: 1024px) {
    .header_mobile .mlogo_wrapper img {
        height: 60px;
    }
    .pagination-wrapper-dpk {
        padding: 0 20px;
    }
}

/* Custome Css code */

/* Hide post meta info in Sasico theme */
.post-meta,
.post-details,
.blog-details,
.entry-meta,
.meta-info,
.tags-links,
.tagcloud,
.post-tags,
.comments-link,
.comment-count,
.post-date,
.posted-on,
.entry-footer {
    display: none !important;
}


/* Hide Sasico breadcrumb (Blog Details, Home > Blog Details etc) */
/* 1. Hide inline featured image inside post */
.dpk-featured-img {
    display: none !important;
}

/* 2. Use featured image only as hero */
.sasi-page-header {

}

/* 3. Remove Sasico color layer */
.sasi-page-header:before,
.sasi-page-header:after {
    display: none !important;
}

/* 4. Prevent extra blank space */
.sasi-page-header .container,
.sasi-page-header-inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* 5. Make title readable on image */
.sasi-page-header h1 {
    color: #fff !important;
    text-shadow: 0 3px 20px rgba(0,0,0,0.6);
}

/* Mobile */
@media (max-width: 768px) {
    .sasi-page-header {
        padding: 80px 20px !important;
    }
}
/* Completely remove Sasico hero overlay */
/* .sasico-page-header::before,
.page-header::before,
.blog-details-header::before,
.sasi-page-header::before,
.sasico-page-header::after,
.page-header::after,
.blog-details-header::after,
.sasi-page-header::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
} */

.page-header.ph-default::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    z-index: 0;
}

/* Keep text above blur */
.page-header.ph-default .ph-inner {
    position: relative;
    z-index: 1;
}

/* move image down
 */

/* Keep header above page content */
.site-header {
    position: fixed !important;
    z-index: 9999 !important;
}

.main-header,
.header-area {
    position: relative;
    z-index: 1000;
}

/* Force hero section to start after header */
.sasico-page-header,
.page-header,
.blog-details-header,
.sasi-page-header {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 32px !important;
}

/* Prevent Sasico from pulling hero upward */
body {
    overflow-x: hidden;
}

/* Ensure no negative margins are pulling it up */
.sasico-page-header,
.page-header,
.blog-details-header,
.sasi-page-header {
    top: 0 !important;
    transform: none !important;
}

/* Enable blur hero background */
.sasico-page-header,
.page-header,
.blog-details-header,
.sasi-page-header {
    position: relative;
    overflow: hidden;
}

/* Blurred image layer */
.sasico-page-header::after,
.page-header::after,
.blog-details-header::after,
.sasi-page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit; /* This now inherits the dynamic image */
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    z-index: 0;
}


/* Dark overlay for readability */
.sasico-page-header::before,
.page-header::before,
.blog-details-header::before,
.sasi-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

/* Keep text & buttons sharp */
.sasico-page-header *,
.page-header *,
.blog-details-header *,
.sasi-page-header * {
    position: relative;
    z-index: 2;
}
.home .page-header.ph-default {
    max-height: 124px!important;
}
/* Create centered hero image box */
.sasico-page-header,
.page-header,
.blog-details-header,
.sasi-page-header {
    display: flex;
    justify-content: center;
}

/* This makes the visible image smaller */
.sasico-page-header::before,
.page-header::before,
.blog-details-header::before,
.sasi-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

/* Inner container that limits image width */
.sasico-page-header .container,
.page-header .container,
.blog-details-header .container,
.sasi-page-header .container {
    max-width: 1200px;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}


.home .sasico-page-header::before,
.home .page-header::before,
.home .blog-details-header::before,
.home .sasi-page-header::before {
    display: none !important;
    content: none !important;
}

/* Keep text/buttons sharp */
.page-header.ph-default *,
.sasico-page-header *,
.blog-details-header *,
.sasi-page-header * {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 3px 20px rgba(0,0,0,0.6);
}

@media (min-width: 1440px) {
    .page-header.ph-default {
        max-width: 1280px;
        padding-top: 120px;
        padding-bottom: 70px;
        border-radius: 10px;
        background-size: cover;
    }
}

@media (max-width: 1024px) and (min-width: 900px) and (max-height: 600px) {
    .page-header.ph-default {
        max-width: 760px;          /* limit width */
        margin: 0 auto;            /* center horizontally */
        padding-top: 90px;
        padding-bottom: 50px;
        border-radius: 8px;

        background-size: auto;     /* keep original image size */
        background-repeat: no-repeat;
        background-position: center center; /* center image */
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .page-header.ph-default {
        max-width: 100%;
        margin: 0 20px;
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .page-header.ph-default {
        max-width: 100%;
        margin: 0 20px;
        padding-top: 90px;
        padding-bottom: 50px;
        border-radius: 6px;
        background-size: cover;
    }

    .page-header.ph-default h1 {
        font-size: 28px;
        line-height: 1.3;
    }
}

@media (max-width: 767px) {
    .page-header.ph-default {
        max-width: 100%;
        margin: 0 15px;
        padding-top: 70px;
        padding-bottom: 40px;
        border-radius: 0;
        background-size: cover;
    }

    .page-header.ph-default h1 {
        font-size: 22px;
        line-height: 1.25;
    }
}

@media (max-width: 480px) {
    .page-header.ph-default {
        padding-top: 60px;
        padding-bottom: 35px;
    }

    .page-header.ph-default h1 {
        font-size: 20px;
    }
}

.custom-featured-hero{
    position: relative;
    max-width: 1280px;
    margin: 32px auto 0;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
}

.custom-featured-hero img{
    width: 100%;
    height: 100%;          /* 👈 fill the hero height */
    object-fit: cover;     /* 👈 keep quality */
    display: block;
}

/* Overlay */
.custom-hero-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;        /* vertical center */
    justify-content: center;    /* horizontal center */
    text-align: center;
}

.custom-hero-breadcrumb,
.custom-hero-title{
    color: #fff;
}

.custom-hero-inner{
    padding: 40px;
    color: #fff;
    width: 100%;
}

.custom-hero-breadcrumb{
    font-size: 14px;
    margin-bottom: 10px;
}

.custom-hero-breadcrumb .sasi-breadcrumbs{
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.custom-hero-title{
    font-size: 36px;
    line-height: 1.2;
    margin: 0;
}

/* Responsive */
@media(max-width:768px){
    .custom-featured-hero{height: 260px;}
    .custom-hero-inner{padding:20px;}
    .custom-hero-title{font-size:20px;}
}
.custom-hero-breadcrumb,
.custom-hero-breadcrumb a,
.custom-hero-breadcrumb li{
    color: #fff !important;
}

.custom-hero-breadcrumb .sasi-breadcrumbs li:before{
    background: #fff !important;
}

.custom-hero-breadcrumb a:hover{
    color: #fff !important;
    opacity: 0.85;
}
/* Hide only default post header on single posts */
.single-post .page-header.ph-default {
    /* display: none !important; */
}

body.single.single-post article.post p a {
    color: rgb(134, 134, 249) !important;
}

@media only screen and (max-width: 1024px) {
    .header_mobile .mlogo_wrapper img {
        height: 60px;
    }
    .pagination-wrapper-dpk {
        padding: 0 20px;
    }
}
