body {
    font-family: 'Baloo Tamma 2', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 .post-title a, .post-cat, .post-list-item .nav-tabs li a, .ts-social-list li b,
.widgets.ts-social-list-item ul li a b, .footer-social li a, .ts-cat-title span {
    font-family: 'Baloo Tamma 2', sans-serif !important;
}

.nav-menu li a, h2, .topic-list {
    font-family: 'Baloo Tamma 2', sans-serif !important;
}

.custom-title a,
.custom-title h1,
.custom-title h2,
.custom-title h3,
.custom-title h4,
.custom-title p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: normal;
}

.custom-title-3 a,
.custom-title-3 h1,
.custom-title-3 h2,
.custom-title-3 h3,
.custom-title-3 h4,
.custom-title-3 p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.custom-breaking-news {
    color: black;
    display: block;
    /* Standard line-clamp properties */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    line-height: 24px;
}

.ts-bgcolor-highlight {
    background-color: #d66f2a !important;
}

.nav-menu > li > a {
    padding: 10px 16px !important;
    line-height: 1.5 !important;
}

.ts-breaking-news p a {
    font-size: 15px !important;
    color: black !important;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot {
    color: #b0a2a2 !important;
}

.right-menu li .nav-search {
    height: 40px !important;
}

.widget-title {
    font-family: 'Baloo Tamma 2', sans-serif !important;
}

/* Breaking news section styling */
.ts-breaking-news {
    padding: 8px 20px !important;
    height: auto !important;
    overflow: hidden;
}

.breaking-title {
    font-size: 14px !important;
    margin-right: 15px !important;
    padding: 0 !important;
    line-height: 24px !important;
}

.breaking-news-content {
    width: calc(100% - 150px) !important;
}

.custom-breaking-news {
    line-height: 24px !important;
    margin-top: 0 !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Mobile specific breaking news styles */
@media (max-width: 767px) {
    .ts-breaking-news {
        padding: 5px 10px !important;
        margin: 5px 0 !important;
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
        overflow: hidden !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        background-color: white !important;
        clear: both !important;
        position: relative !important;
        top: auto !important;
        z-index: 1 !important;
        height: 30px !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .breaking-title {
        margin-bottom: 0 !important;
        float: none !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        margin-right: 5px !important;
    }

    /* Hide the text label, only show icon on mobile */
    .breaking-title span {
        display: none !important;
    }

    .breaking-news-content {
        width: calc(100% - 30px) !important;
        float: none !important;
        margin: 0 !important;
        max-height: 24px !important;
        overflow: hidden !important;
    }

    /* Fix for owl carousel in mobile view */
    #breaking_slider .owl-stage {
        display: flex !important;
        align-items: center !important;
    }

    #breaking_slider .owl-item {
        width: 100% !important;
    }

    .breaking-post-content {
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
    }

    .custom-breaking-news {
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 13px !important;
    }
}

.logo {
    height: 85px !important;
    padding-bottom: 5px !important;
}

.logo a {
    line-height: 80px !important;
}

.customborder {
    border-right: 1px solid white;
    display: inline-block;
    height: 15px;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
    pointer-events: none;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 1001;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-close {
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-content {
    padding: 15px 0;
}

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

.mobile-menu-content ul li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-content ul li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.mobile-menu.active {
    left: 0;
}

@media (min-width: 992px) {
    .ts-menu-sticky.sticky.fade_down_effect {
        height: 58px !important;
    }
}

/*#------------ Author Image ---------------------*/
.auther-image-small {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.auther-image-medium {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.auther-image-large {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

/* -------------- Contact Page -------------- */
.contact-page a,
.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page h4,
.contact-page p,
.contact-page span,
.contact-page label {
    font-family: 'Baloo Tamma 2', sans-serif !important;
    color: #333 !important;
}

/*** **************************** */
/*** **************************** */
@media (min-width: 768px) {
    .desktop-fixed-height-30 {
        height: 30px;
    }

    .desktop-fixed-height-40 {
        height: 40px;
    }

    .desktop-fixed-height-50 {
        height: 50px;
    }
}

/*** **************************** */
/*** **************************** */
/* Custom styles for fixing featured slider shadow */
/* Override the shadow direction - make it bottom to top instead of left to right */
.ts-featured-post .item:before {
    background: -webkit-gradient(linear, left bottom, left top, color-stop(0%, rgba(0, 0, 0, 0.95)), color-stop(70%, rgba(0, 0, 0, 0)));
    background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 70%);
    background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 70%);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Adjust the overlay post content position to be more at the bottom */
.ts-featured-post .overlay-post-content {
    max-width: 520px;
    right: 0;
    left: 0;
    top: auto;
    bottom: 50px;
    margin: auto;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    z-index: 1;
    text-align: center;
}

/* Make the shadow extend higher from the bottom for #featured-slider-3 */
#featured-slider-3 .item:before {
    background: -webkit-gradient(linear, left bottom, left top, color-stop(0%, rgba(0, 0, 0, 0.95)), color-stop(60%, rgba(0, 0, 0, 0)));
    background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 60%);
    background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 60%);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 60%);
}

/* Top strip styles */
.top-strip-wrapper {
    background-color: #ffffff;
    padding: 4px 10px 4px 10px;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
}

.top-strip-date {
    font-size: 13px;
    color: #9b4710;
    font-weight: 500;
}

.top-strip-social-icons {
    gap: 8px;
    display: flex;
}

.top-strip-social-btn {
    color: white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.top-strip-social-btn.facebook {
    background: #3b5998;
}

.top-strip-social-btn.twitter {
    background: #1da1f2;
}

.top-strip-social-btn.instagram {
    background: #c32aa3;
}

.top-strip-social-btn.youtube {
    background: #ff0000;
}

/* ePaper button styles */
.top-strip-epaper-btn {
    background: #d72924;
    color: white;
    padding: 0 12px;
    height: 20px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s ease;
}

.top-strip-epaper-btn:hover {
    background: #c2211c;
    color: white;
    text-decoration: none;
}

.top-strip-epaper-btn i {
    font-size: 12px;
}

/* Mobile responsive adjustments for ePaper button */
@media (max-width: 767px) {
    .top-strip-epaper-btn {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .top-strip-epaper {
        margin-left: 8px !important;
    }
}

/* Reduced header heights */
.logo {
    padding: 5px 0 !important;
}

.navigation.ts-main-menu {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}
