/*
===========================================================================
PORTAL CSS - Master frame styles
File: /var/www/html/nsgia.com/static/css/portal.css
===========================================================================
2026-01-19 v2.0 - Extracted from inline to external file
2026-01-18 v1.0 - Initial creation (inline)
===========================================================================
*/

:root {
    --portal-navbar-height: 60px;
    --portal-sidebar-width: 220px;
    --portal-footer-height: 50px;
    --color-navbar: #1a1a1a;
    --color-sidebar: #2c3e50;
    --color-sidebar-hover: #34495e;
    --color-sidebar-active: #3498db;
    --color-footer: #1a1a1a;
    --color-primary: #2c5282;
    --color-primary-light: #3182ce;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-bg: #f5f7fa;
    --color-border: #e2e8f0;
    --font-body: 'Georgia', 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body { min-height: 100%; font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-light); }

/* NAVBAR */
.portal-navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--portal-navbar-height);
    background: var(--color-navbar);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.portal-navbar-brand { display: flex; flex-direction: column; }
.portal-navbar-title { color: var(--color-white); font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.portal-navbar-title:hover { color: var(--color-white); opacity: 0.9; }
.portal-navbar-subtitle { color: rgba(255,255,255,0.7); font-size: 0.75rem; }
.portal-navbar-links { display: flex; gap: 20px; }
.portal-navbar-links a { color: var(--color-white); font-size: 0.9rem; padding: 8px 12px; border-radius: 4px; transition: background 0.2s; }
.portal-navbar-links a:hover { background: rgba(255,255,255,0.1); color: var(--color-white); }

/* SIDEBAR */
.portal-sidebar {
    position: fixed; top: var(--portal-navbar-height); left: 0; bottom: var(--portal-footer-height);
    width: var(--portal-sidebar-width); background: var(--color-sidebar);
    overflow-y: auto; z-index: 999;
}
.portal-sidebar-header { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.portal-sidebar-header h3 { color: var(--color-white); font-size: 1rem; font-weight: 600; margin: 0; }
.portal-sidebar-nav { padding: 10px 0; }
.sidebar-category {
    width: 100%; padding: 12px 15px; background: transparent; border: none;
    color: rgba(255,255,255,0.9); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
    text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: background 0.2s;
}
.sidebar-category:hover { background: var(--color-sidebar-hover); }
.sidebar-category.active { background: var(--color-sidebar-hover); }
.sidebar-arrow { font-size: 0.7rem; transition: transform 0.2s; }
.sidebar-category.active .sidebar-arrow { transform: rotate(90deg); }
.sidebar-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: rgba(0,0,0,0.1); }
.sidebar-panel.open { max-height: 500px; }
.sidebar-link {
    display: block; padding: 10px 15px 10px 25px; color: rgba(255,255,255,0.8);
    font-size: 0.85rem; text-decoration: none; border-left: 3px solid transparent; transition: all 0.2s;
}
.sidebar-link:hover { background: rgba(255,255,255,0.05); color: var(--color-white); border-left-color: rgba(255,255,255,0.3); }
.sidebar-link.active { background: rgba(255,255,255,0.1); color: var(--color-white); border-left-color: var(--color-sidebar-active); }

/* MAIN CONTENT */
.portal-main {
    margin-top: var(--portal-navbar-height); margin-left: var(--portal-sidebar-width); margin-bottom: var(--portal-footer-height);
    min-height: calc(100vh - var(--portal-navbar-height) - var(--portal-footer-height));
    background: var(--color-white);
}
.portal-iframe { width: 100%; height: calc(100vh - var(--portal-navbar-height) - var(--portal-footer-height)); border: none; display: block; }

/* WELCOME */
.portal-welcome { padding: 40px 5%; width: 90%; margin: 0 auto; }
.portal-welcome h1 { color: var(--color-primary); font-size: 2rem; margin-bottom: 10px; }
.portal-welcome-subtitle { color: var(--color-text-light); font-size: 1.1rem; margin-bottom: 30px; }

/* ACCORDIONS */
.portal-accordion-container { margin-top: 20px; }
.accordion-section {
    background-color: #1a365d; color: white; cursor: pointer; padding: 18px 20px; width: 100%;
    border: none; border-radius: 6px; text-align: left; font-family: Georgia, serif;
    font-size: 1.1rem; font-weight: 600; margin-top: 15px; transition: background-color 0.2s ease;
    display: flex; justify-content: space-between; align-items: center;
}
.accordion-section:first-of-type { margin-top: 0; }
.accordion-section:hover { background-color: #2c5282; }
.accordion-section::after { content: '+'; font-size: 1.2rem; font-weight: bold; }
.accordion-section.active::after { content: '−'; }
.accordion-section.active { background-color: #2c5282; border-radius: 6px 6px 0 0; }

.accordion-project {
    background: #f5f9fa; color: #2b6777; cursor: pointer; padding: 1rem 1.25rem; width: 100%;
    border: 1px solid #d4e8ed; border-radius: 6px; text-align: left; font-family: Georgia, serif;
    font-size: 1rem; font-weight: 600; margin-top: 0.75rem; transition: all 0.2s ease;
    display: flex; justify-content: space-between; align-items: center;
}
.accordion-project:first-of-type { margin-top: 0; }
.accordion-project::after { content: '+'; font-size: 1.1rem; color: #52ab98; }
.accordion-project.active::after { content: '−'; color: white; }
.accordion-project:hover { background: #d4e8ed; border-color: #52ab98; }
.accordion-project.active { background: #2b6777; color: white; border-radius: 6px 6px 0 0; }

.panel-section {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    background-color: #f5f9fa; border-left: 4px solid #1a365d; border-radius: 0 0 6px 6px; padding: 0 15px;
}
.panel-section.open { max-height: 3000px; padding: 15px; }

.panel-project {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    background: white; border: 1px solid #d4e8ed; border-top: none; border-radius: 0 0 6px 6px; padding: 0 1.25rem;
}
.panel-project.open { max-height: 500px; padding: 1.25rem; }

.section-intro { color: #5a7a8a; font-size: 1rem; margin-bottom: 1rem; font-style: italic; }
.highlight-box {
    background: linear-gradient(135deg, #f5f9fa, #d4e8ed); border-left: 4px solid #2b6777;
    padding: 1.25rem; margin: 0.5rem 0 1rem 0; border-radius: 0 8px 8px 0;
}
.highlight-box p { margin: 0.5rem 0; line-height: 1.6; }
.highlight-box p:first-child { margin-top: 0; }
.highlight-box p:last-child { margin-bottom: 0; }

/* FOOTER */
.portal-footer {
    position: fixed; bottom: 0; left: var(--portal-sidebar-width); right: 0;
    height: var(--portal-footer-height); background: var(--color-footer);
    display: flex; align-items: center; justify-content: center; z-index: 998;
}
.portal-footer-content { text-align: center; }
.portal-footer-content p { color: rgba(255,255,255,0.8); font-size: 0.8rem; margin: 2px 0; }
.portal-footer-content a { color: rgba(255,255,255,0.9); text-decoration: none; }
.portal-footer-content a:hover { color: var(--color-white); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .portal-sidebar { display: none; }
    .portal-main { margin-left: 0; }
    .portal-footer { left: 0; }
    .portal-navbar-links { display: none; }
    .portal-welcome { padding: 20px; }
}
/*
===========================================================================
PORTAL ADDITIONS CSS - No-sidebar layout and typography fixes
File: /var/www/html/nsgia.com/static/css/portal_additions.css
===========================================================================
2026-01-19 v1.0 - Initial creation for contact page fixes
===========================================================================
Append this to portal.css or load separately
*/

/* Typography - Playfair Display + Source Sans Pro */
:root {
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* NO-SIDEBAR LAYOUT */
body.no-sidebar .portal-footer {
    left: 0;
}

body.no-sidebar .portal-content {
    margin-left: 0;
}

/* MAIN CONTENT WRAPPER */
.portal-content {
    margin-top: var(--portal-navbar-height);
    min-height: calc(100vh - var(--portal-navbar-height) - var(--portal-footer-height));
    padding-bottom: calc(var(--portal-footer-height) + 20px);
    background: var(--color-white);
}

/* FOOTER FIX - ensure full width on no-sidebar pages */
body.no-sidebar .portal-footer {
    left: 0;
    right: 0;
}

/* NAVBAR REFINEMENTS */
.portal-navbar {
    font-family: var(--font-body);
}

.portal-navbar-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.portal-navbar-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.portal-navbar-links a {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* FOOTER REFINEMENTS */
.portal-footer {
    font-family: var(--font-body);
}

.portal-footer-content p {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}
