/* =========================================================
   BASE — Reset, Variables, Typography, Container, Helpers
   ========================================================= */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #0f172a;
    background: #ffffff;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- CSS Variables --- */
:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --navy-dark: #08183a;
    --accent-gold: #f59e0b;
    --dark: #08183a;
    --gray: #64748b;
    --light-gray: #f8fafc;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(8, 24, 58, 0.05);
    --shadow-hover: 0 8px 24px rgba(8, 24, 58, 0.1);
    --container: 1280px;
    --share-bar-height: 60px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy-dark);
    margin-bottom: 12px;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 16px; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Back To Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 1001;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { background: var(--primary-dark); color: #fff; }

/* --- Screen Reader & Alignment Helpers --- */
.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 20px auto; }

/* --- Responsive Base --- */
@media (max-width: 600px) {
    .container { padding: 0 16px; }
}