/* atPakistan — small custom styles (layout is Tailwind via CDN) */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Logo: keep the triangle-A wordmark tight */
.font-display {
    letter-spacing: -0.02em;
}

/* Subtle lift for trending post cards */
article {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
article:hover {
    box-shadow: 0 8px 24px rgba(6, 43, 26, 0.08);
}

/* News ticker (news section only): slow horizontal scroll,
   pauses on hover. The track content is rendered twice so the
   -50% loop is seamless. */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-track {
    animation: ticker-scroll 60s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}

/* Urdu (RTL) mode: Nastaliq for readable Urdu script. The
   taller line-height keeps the Nastaliq ascenders/diacritics
   from clipping. */
html[dir="rtl"] body {
    font-family: 'Noto Nastaliq Urdu', 'Inter', ui-sans-serif, system-ui, sans-serif;
    line-height: 1.9;
}
html[dir="rtl"] .font-display {
    font-family: 'Noto Nastaliq Urdu', 'Poppins', sans-serif;
    line-height: 2;
}
