﻿/*
Theme Name: Samachar Post
Theme URI: https://github.com/samacharpost/theme
Description: A premium, fast, and responsive Dainik Bhaskar-inspired news portal WordPress theme using Tailwind CSS.
Version: 1.4.0
Author: Antigravity
Author URI: https://gemini.google.com
License: GNU General Public License v2 or later
Text Domain: samachar-post
*/

/* Custom scrollbar for trending news list */
.trending-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.trending-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.trending-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Pulsing Dot animation for breaking ticker */
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}
.pulse-dot {
    animation: pulse 1.5s infinite;
}

/* Smooth fade transitions for slider */
.slide-fade {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.slide-fade.active {
    opacity: 1;
}

/* Custom transitions */
.transition-transform-cubic {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Post Detail Content Typography styling (Tailwind override) */
.entry-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
    color: #0f172a;
}
.entry-content h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    line-height: 1.3;
    color: #0f172a;
}
.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #0f172a;
}
.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #0f172a;
}
.entry-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #334155;
}
.entry-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.entry-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.entry-content li {
    margin-bottom: 0.5rem;
}

/* Dynamic Nav Menu Styles */
.dynamic-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dynamic-nav-menu li {
    position: relative;
}
.dynamic-nav-menu a {
    display: block;
    padding: 0.875rem 1rem;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-bottom: 4px solid transparent;
    transition: all 0.2s ease;
}
.dynamic-nav-menu a:hover {
    border-bottom-color: #c21a1a;
    background-color: rgba(255, 255, 255, 0.05);
}
.dynamic-nav-menu li:hover > a {
    border-bottom-color: #c21a1a;
}
/* Append FontAwesome Chevron automatically for parents in WordPress */
.dynamic-nav-menu li.menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    margin-left: 0.35rem;
    display: inline-block;
    vertical-align: middle;
}
/* Submenus / Dropdowns */
.dynamic-nav-menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 9999;
    border-top: 3px solid #c21a1a;
    border-radius: 0 0 0.5rem 0.5rem;
    list-style: none;
}
.dynamic-nav-menu li:hover > ul.sub-menu {
    display: block;
}
.dynamic-nav-menu ul.sub-menu a {
    color: #334155;
    padding: 0.625rem 1.25rem;
    font-size: 0.825rem;
    font-weight: 700;
    border-bottom: none;
    text-transform: none;
}
.dynamic-nav-menu ul.sub-menu a:hover {
    background-color: #f8fafc;
    color: #c21a1a;
}
