/*
Theme Name:		Daily Pakistan
Theme URI:		https://en.dailypakistan.com.pk/
Description:	Child Theme based on Hello Elementor for HelloElementor
Author:		    Digital Perception
Author URI:   	https://www.perceptiond.pk/
Template:     	hello-elementor
Version:      	3.1.8
*/

/**
 * 
 * Utilities
 * 
 */



.vertical-slider .slider-item a:hover {
   
    color: var(--e-global-color-text);
}

/* Fix Medium Thumbnails */

.dp-medium-image a {
    padding-bottom: 61.5%;
    display: block !important;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

 .dp-medium-image a > img {
    position: absolute;
    width: 100%;
    min-height: 100%;
    z-index: -1;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    display: unset;
}



a {
	color: var( --e-global-color-secondary );
}

iframe[id^="google_ads_iframe"] {
    width: revert-layer !important;
    max-width: 100% !important;
}

/**
 * 
 * Next Posts Popup
 * 
 */

#next-posts-popup {
    display: block;
    position: fixed;
    background: var(--e-global-color-primary);
    width: 300px;
    bottom: 150px;
    right: 15px;
    z-index: 4;
    border-radius: 3px;
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .2), 0 2px 20px rgba(0, 0, 0, .15);
    box-shadow: 0 0 1px rgba(0, 0, 0, .2), 0 2px 20px rgba(0, 0, 0, .15);
    padding: 15px 20px 10px 15px;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: .3s ease;
    -o-transition: .3s ease;
    transition: .3s ease;
    border: 1px solid var(--e-global-color-10bfc8c);
}

/* Show the popup when it has the active class */
#next-posts-popup.active {
    opacity: 1;
    visibility: visible;
    bottom: 100px;
    -webkit-transition: .4s ease;
    -o-transition: .4s ease;
    transition: .4s ease;
}

.next-posts-label {
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    position: absolute;
    right: 0;
    bottom: 0;
    line-height: 1;
    padding: 3px 5px;
    background: #052962;
}

#next-posts-popup .next-post {
    display: flex;
    margin-bottom: 10px;
}

#next-posts-popup .thumbnail {
    flex-shrink: 0;
    margin-right: 10px;
}

#next-posts-popup .thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

#next-posts-popup .post-title {
    flex-grow: 1;
}

#next-posts-popup .post-title h2 {
    font-size: 14px;
    margin: 0;
    color: var(--e-global-color-text);
}

#next-posts-popup .post-title a {
    color: inherit;
    text-decoration: none;
}

#next-posts-popup .post-title a:hover {
    text-decoration: underline;
}

/* Close Button Styling */
#next-posts-popup .close-popup {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

#next-posts-popup .close-popup:hover {
    color: #000;
}


.latest-forex-post h2 {
    font-family: 'Poppins', 'Noto Serif' !important;
    font-size: 16px;
    line-height: 21px;
    font-weight: 500;
    color: var(--e-global-color-text) !important;
}

.latest-forex-post a {
    color: var(--e-global-color-text) !important;
}

.latest-forex-post .dp-forex-table-wrapper {
    height: 370px;
    width: 100%;
    overflow: hidden;
}

.latest-forex-post tr td:nth-child(2), .latest-forex-post tr th:nth-child(2), .latest-forex-post table colgroup {
    display: none !important;
}

.latest-forex-post table thead tr, table thead tr{
	background-color: var(--e-global-color-text);
	color: var( --e-global-color-primary );
}


/* ======= Dark Mode Toggle ======= */

.selector {
    position: absolute;
    top: 30px;
}

.theme-switcher {
    position: absolute;
    opacity: 0;
}

.dm-label {
    width: 50px;
    height: 25px;
    background: #E5E5E5;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    padding: 3px 5px;
    transform: scale(1);
    transition: background 0.5s;
    cursor: pointer;
}

.theme-switcher:checked + .dm-label {
    background: #4c4c4c;
}

.dm-label i {
    background: #fff;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    text-align: center;
    padding: 2px;
    position: absolute;
    left: 3px;
    transition: all 0.6s;
    color: #000;
}

.theme-switcher:checked + .dm-label i {
    transform: translateX(25px);
}

.dm-label .fa-sun-o {
    opacity: 0;
}

.dark-mode .dm-label .fa-sun-o {
    opacity: 1;
    z-index: 1;
}

@media (max-width: 1024px){
    .dm-label {
        background-color: #4c4c4c;
    }
}

/* Dark Mode - START */

body.dark-mode {
    background-color: var( --e-global-color-primary );
   --e-global-color-primary: #1A1A1A;
  --e-global-color-secondary: white;
  --e-global-color-text: white !important;
  --e-global-color-3b68517:white;
  --e-global-color-66427a1:#303030;
  --e-global-color-4cc3354:black;
  --e-global-color-accent:#adadad !important;
  --e-global-color-5bc9052:#454545;
--e-global-color-02a8942:#c2c0c0;
    --e-global-color-c830fea:black;
}

#light-logo {
    display: none;
}

.dark-mode #light-logo {
    display: block;
}

.dark-mode #dark-logo {
    display: none;
}


/* ===== Custom Code ======= */

.elementor-post__title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    }
    
    .elementor-divider__text.elementor-divider__element a{
    color: var(--e-global-color-text) !important;
}
    
    
    
/*  footer whattsapp icon */
    .call-to-action .elementor-icon-box-title {
    background-color: white;
        display:inline;
    padding: 5px;
    border-radius: 3px;
        box-shadow: 0 0 10px #007468;
}
    
    
    
    /* Posts list widget */
.list-with-arrows .elementor-post__title::before {
    content: '\f0da';
    font-family: 'FontAwesome';
    font-size: 17px;
    position: absolute;
    left: 0;
    color: var( --e-global-color-7d244e0 );
   
}

.list-with-arrows article{
   padding:10px 0px 10px 18px !important;
}

.list-with-arrows article + article{
     border-top: 1px solid var(--e-global-color-5bc9052);
}


/* remove border bottom from last child */
    .post-list 
    .elementor-grid article:last-child {
    border-bottom: none !important;
}
    
    
/*  dropown-menu */

    .sub-menu .menu-item:first-child{
        margin-top:6px;
    }
    .sub-menu .menu-item:last-child{
        margin-bottom:6px;
    }


/* ======= Vertical News Ticker====== */


.vertical-slider {
    position: relative;
    height: 40px; 
    overflow: hidden;

}

.slider-container {
    display: flex;
    flex-direction: column;
    height: 40%;
    transition: transform 0.5s ease;
}

.slider-item {
    padding:7px 10px 10px 10px;
    min-height: 44px;
}

.slider-item:last-child {
    border-bottom: none;
}
    
.vertical-slider {
    position: relative;
    height: 40px; 
    overflow: hidden;
}

.slider-container {
    display: flex;
    flex-direction: column;
    height: 40%;
    transition: transform 0.5s ease;
}
.slider-item a {
    text-decoration: none;
    color: var(--e-global-color-text);
    font-family:"Poppins", Sans-serif;
    font-weight:500;
    font-size:18px;
    display: block;
    width: 100%;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

@media (max-width:600px){
    .slider-item a {
        font-size:16px;
    }
}



/* Yoast FAQ Block */

.schema-faq {
    margin: 20px 0;
}

.schema-faq-section {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.schema-faq-question {
    cursor: pointer;
    display: block;
    padding: 15px;
    background-color: var(--e-global-color-primary);
    border-bottom: 1px solid #ddd;
    outline: none;
    text-align: left;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    color: var(--e-global-color-text);
}

.schema-faq-question:hover {
    background-color: var(--e-global-color-5bc9052);
}

.schema-faq-question::after {
    content: '\002B';
    font-size: 20px;
    float: right;
    transition: transform 0.3s ease;
}

.active .schema-faq-question::after {
    content: '\2212';
    transform: rotate(180deg);
}

.schema-faq-answer {
    display: none;
    padding: 15px;
    background-color: var(--e-global-color-primary);
    border-top: 1px solid var(--e-a-border-color);
    line-height: 1.6;
    color: var(--e-global-color-text);
    margin: 0;
}

.active .schema-faq-answer {
    display: block;
}


.epaper-section img {
    width: 100%;
    max-height: 306px;
    max-width: 306px;
    object-fit: cover;
    object-position: top;
}

/* News Ticker */

@-webkit-keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
}


@keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}

.newsticker {
    -webkit-user-select: none;
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 35px;
    display: flex;
    align-items: center;
} 

.newsticker span {
    color: #fff;
    padding: 4px 6px;
    position: relative;
    top: 1%;
    box-shadow: inset 0 -15px 30px rgba(0,0,0,0.4);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    cursor: pointer;
    background: var( --e-global-color-secondary );
    position: absolute;
    z-index: 1;
    line-height: 1.2;
    height: 100%;
    padding: 6px 10px;;
}

.newsticker ul {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    box-sizing: content-box;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-name: ticker;
    animation-duration: 75s;
}

.newsticker ul li {
    line-height: 30px;
    list-style: none;
    display: inline-flex;
    align-items: center;
    padding: 0 1.5rem;
/*    font-family: 'nastaleeq';*/
    position: relative;
}
.newsticker ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var( --e-global-color-secondary );
    display: block;
    position: absolute;
    left: 0;
}
.newsticker ul li a {
    color: var( --e-global-color-text );
    text-decoration: none;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    font-weight: 400;
    line-height: 2;
    font-family: 'Poppins';
}

.newsticker ul:hover { animation-play-state: paused }
.newsticker span:hover+ul { animation-play-state: paused }

@media (max-width: 600px){
    .newsticker ul li a {
        font-size: 14px;
    }
    .newsticker ul li {
        padding: 0 1rem;
    }
}