/* 
   NASRI Official Website Stylesheet
   Circa 1997 - "Amazon-Inspired" Federal Style
   Responsive & Period-Accurate
   NO EM DASHES, NO ROUNDED CORNERS, NO SHADOWS
   GREY SIDE MARGINS
*/

:root {
    --nasri-blue: #0164A2;
    --nasri-orange: #cc6600;
    --nasri-sidebar-gray: #f2f2f2;
    --link-blue: #0000ee;
    --link-visited: #551a8b;
}

body {
    background-color: #666666; /* GREY SIDE MARGINS */
    color: #000000;
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* Fluid Container for Responsiveness */
#container {
    max-width: 800px; /* SLIGHTLY NARROWER FOR AUTHENTICITY */
    width: 100%;
    margin: 0 auto; /* CENTERED */
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}

/* Header Styles - Tab Style */
header {
    background-color: #ffffff;
    padding: 5px 0 0 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: var(--nasri-blue);
    margin-left: 5px;
}

.header-badge {
    text-align: right;
    font-size: 10px;
    font-family: "Times New Roman", Times, serif;
    color: #333;
}

/* Amazon-style Tabs */
nav.top-tabs {
    display: flex;
    background-color: #ffffff;
    padding-left: 10px;
    border-bottom: 2px solid var(--nasri-blue);
    flex-wrap: wrap;
}

nav.top-tabs a {
    text-decoration: none;
    color: #000;
    font-family: "Times New Roman", Times, serif;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 12px;
    border: 1px solid #999;
    border-bottom: none;
    background-color: #d6d6d6;
    margin-right: 1px;
    border-radius: 0;
}

nav.top-tabs a.active {
    background-color: var(--nasri-blue);
    color: #ffffff;
    border-color: var(--nasri-blue);
}

nav.top-tabs a:hover:not(.active) {
    background-color: #e6e6e6;
}

/* Sidebar Layout */
.page-body {
    display: flex;
    flex: 1;
}

aside.sidebar {
    width: 170px;
    background-color: var(--nasri-sidebar-gray);
    padding: 10px;
    border-right: none; /* REMOVED LINE */
    font-family: "Times New Roman", Times, serif;
    font-size: 11px;
}

aside.sidebar h4 {
    margin: 12px 0 3px 0;
    font-size: 11px;
    color: var(--nasri-orange);
    text-transform: uppercase;
    font-weight: bold;
}

aside.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

aside.sidebar ul li {
    margin-bottom: 3px;
}

aside.sidebar a {
    text-decoration: none;
    color: var(--link-blue);
}

aside.sidebar a:hover {
    text-decoration: underline;
}

/* Volunteer Box - Replaces Search */
.volunteer-box {
    border: none; /* REMOVED BORDER */
    padding: 10px;
    background-color: #ffcc66;
    margin-bottom: 15px;
}

.volunteer-box b {
    display: block;
    font-size: 11px;
    color: #000;
    margin-bottom: 4px;
}

.volunteer-box label {
    font-size: 9px;
    display: block;
    margin-bottom: 1px;
    font-weight: bold;
}

.volunteer-box input[type="text"], .volunteer-box select {
    width: 100%;
    font-size: 9px;
    margin-bottom: 5px;
    border: 1px solid #000;
    padding: 1px;
}

.volunteer-box input[type="submit"] {
    width: 100%;
    font-size: 10px;
    font-weight: bold;
    background-color: #eee;
    border: 1px solid #000;
    cursor: pointer;
}

/* Main Content Area */
main {
    padding: 15px;
    flex: 1;
}

h1 {
    font-family: "Times New Roman", Times, serif;
    font-size: 18px;
    color: var(--nasri-blue);
    border-bottom: 1px solid #ccc;
    padding-bottom: 3px;
    margin-top: 0;
}

h2 {
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    color: var(--nasri-orange);
    margin-top: 15px;
    text-transform: uppercase;
}

/* Footer Styles */
footer {
    border-top: 1px solid #ccc;
    padding: 15px;
    background-color: #ffffff;
    font-size: 10px;
    font-family: "Times New Roman", Times, serif;
    text-align: center;
}

.footer-nav {
    margin-bottom: 8px;
}

.footer-nav a {
    margin: 0 8px;
}

/* Responsive Grids */
.box-grid {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.box {
    flex: 1;
    border: none;
    padding: 8px;
    background-color: #fff;
}

/* Portal Style Refinement */
.portal-container {
    max-width: 320px;
    margin: 50px auto;
    border: none; /* REMOVED BORDER */
    padding: 20px;
    background-color: #f9f9f9; /* Matches director quote background */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .page-body {
        flex-direction: column;
    }
    
    aside.sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ccc;
        box-sizing: border-box;
    }
    
    .box-grid {
        flex-direction: column;
    }
    
    #container {
        border-left: none;
        border-right: none;
    }
}

/* General Typography */
p, li {
    font-size: 14px; /* SMALLER FONT SIZES FOR AUTHENTICITY */
}

blockquote {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 16px;
    color: #444;
    padding-left: 12px;
    margin: 15px 0;
    border-left: none; /* Explicitly remove browser default border */
}

.hr-amazon {
    height: 1px;
    border: none;
    background-color: #ccc;
    margin: 15px 0;
}

.publication-item {
    margin-bottom: 25px;
}

.publication-item h3 {
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    color: var(--nasri-blue);
    margin-bottom: 3px;
}

.publication-meta {
    font-size: 11px;
    font-style: italic;
    color: #666;
    margin-bottom: 8px;
}

a {
    color: var(--nasri-blue);
    text-decoration: underline;
}

a:visited {
    color: #660099; /* A softer, more classic purple for visited links */
}
