/* Explain: Base reset and typography defaults. - */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

[x-cloak] {
    display: none !important;
}

/* Breaking News Marquee */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    padding-inline-start: 100%;
}

.ticker-wrap:hover .ticker-content {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%); /* Right to left for RTL */
    }
}

/* Rich Text Content Formatting */
#custom-editor:empty:before {
    content: attr(placeholder);
    color: #9ca3af;
    pointer-events: none;
    display: block; /* For Firefox */
}
.prose p {
    margin-bottom: 1.25em;
    line-height: 1.8;
    font-size: 1.125rem;
}
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}
.prose img {
    border-radius: 0.5rem;
    margin-bottom: 1.5em;
    width: 100%;
    height: auto;
}