/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* Prevents the main page from scrolling */
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
}

/* 1. Navigation (Fixed Height) */
.top-nav {
    height: 60px;
    background: #111;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0; /* Prevents nav from squishing */
}

.logo { font-weight: 800; letter-spacing: 1px; }
.logo span { color: #e74c3c; }

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.primary { background: #e74c3c; color: white; margin-left: 10px; }

/* 2. Breaking News (Fixed Height) */
.breaking-container {
    height: 35px;
    background: #f8f9fa;
    border-bottom: 2px solid #e74c3c;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.label {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
}

.scroll-text {
    white-space: nowrap;
    animation: scroll 25s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 3. PDF Full View (Dynamic Height) */
.pdf-main-container {
    flex-grow: 1; /* Takes up ALL remaining vertical space */
    width: 100%;
    background: #525659; /* Standard PDF viewer background color */
}

.pdf-main-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .top-nav { height: 50px; padding: 0 10px; }
    .logo { font-size: 14px; }
    .btn { padding: 5px 10px; font-size: 12px; }
    
    /* On mobile, we keep the PDF tall to allow for zooming */
    .pdf-main-container {
        height: calc(100vh - 85px); /* Subtracts nav and ticker heights */
    }
}