/* =============================================================================
   BASE.CSS — Every Name Matters
   Foundation only: reset, layout, typography, colors.
   No components here — those live in components.css
   ============================================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', 'Noto Naskh Arabic', sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.7;
}

/* -----------------------------------------------------------------------------
   MAIN CONTAINER
----------------------------------------------------------------------------- */
main {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: rgba(26, 26, 26, 0.92);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

body.homepage main {
    position: relative;
    max-width: 1200px;
    margin: -35vh auto 4rem;
    padding: 5rem 2rem 3rem;
    background: rgba(15, 15, 15, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

main.narrow-main { max-width: 900px; }

/* -----------------------------------------------------------------------------
   TYPOGRAPHY
----------------------------------------------------------------------------- */
h1 { color: #ff8800; margin-bottom: 1.5rem; font-size: 2.8rem; }
h2 { color: #ff8800; margin: 2.5rem 0 1rem; font-size: 2rem; }
h3 { color: #ff8800; margin: 2.5rem 0 1rem; font-size: 2rem; text-align: center; width: 100%; }

/* News card titles must NOT inherit h3 orange+center */
.news-card-title {
    color: inherit;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.75rem 0;
    line-height: 1.4;
    width: auto;
}

body.rtl .news-card-title { text-align: right; }

p, li, blockquote { margin-bottom: 1.2rem; line-height: 1.7; }
ul, ol { margin-left: 1.5rem; margin-bottom: 1.5rem; }
strong { color: #ff8800; }
a { color: #ff8800; text-decoration: none; }
a:hover { text-decoration: underline; }

.subtitle    { font-size: 1.2rem; opacity: 0.92; }
.center-note { text-align: center; font-style: italic; opacity: 0.92; margin-top: 2rem; }
.center-strong { text-align: center; font-style: italic; opacity: 0.95; margin-top: 2.25rem; }

/* -----------------------------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------------------------- */
@media (max-width: 980px) {
    main, body.homepage main { margin: 2rem 1rem; padding: 2rem 1.2rem; }
    body.homepage main { margin-top: -20vh; }
}

@media (max-width: 840px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    main { margin: 1rem !important; padding: 1.5rem !important; }
    .tagline { font-size: 1.2rem !important; bottom: 20px !important; }
}