/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f3f4f6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
    max-width: 1000px;
    /* Slightly wider for grid */
    margin: 2rem auto;
    padding: 0 1.5rem;
}

header {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%),
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px;
    padding: 3rem 1rem;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
    /* Flush with ticker */
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    color: white;
    line-height: 1.1;
}

header p {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Breaking News Ticker */
.ticker-wrap {
    width: 100%;
    background: #111827;
    /* Dark background */
    border-bottom: 2px solid #ef4444;
    overflow: hidden;
    height: 46px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 170px;
    /* Space for label */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

/* Pause on Hover */
.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.ticker-item:hover {
    color: #fbbf24;
    /* Amber highlight */
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    text-decoration: none;
}

.ticker-sep {
    margin: 0 0.5rem;
    font-size: 1.1em;
    vertical-align: middle;
}

.ticker-label {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    padding: 0 2rem 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: absolute;
    left: 0;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
    box-shadow: 4px 0 15px rgba(239, 68, 68, 0.4);
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
    background-color: #1f2937;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Typography */
h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3b82f6;
    /* Brand Blue */
    display: inline-block;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

nav a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Footer Links */
footer a {
    color: #9ca3af;
    margin: 0 0.5rem;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Utility */
.container {
    padding: 0 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1f2937;
    border: 3px solid #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #111827;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #1f2937 #f1f1f1;
}