* {
	margin: 0px;
	padding: 0px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
	background: #f4f6f9;
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
}

#header {
	width: 100%;
	min-height: 72px;
	position: relative;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
	padding: 12px 20px;
    flex-shrink: 0;
	background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#main {
	width: 100%;
    flex: 1;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
	background: transparent;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
}

/* Professional Content Card Styles */
.content-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #22386a;
    margin-bottom: 30px;
    text-align: left;
}

.page-title {
    font-size: 24px;
    color: #19529a;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.page-content ul, .page-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
}

/* Legacy Styles Refined */
#htitle {
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
}

#htitle img {
	width: 52px;
	height: auto;
	position: static;
}

#htitle h1 {
	color: #19529a;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 22px;
	margin: 0;
	line-height: 1.2;
}

#htitle p {
	color: #19529a;
	font-size: 12px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-style: italic;
	margin: 2px 0 0 0;
}

#hlinks {
	position: static;
	text-align: right;
    color: #22386a;
    font-size: 12px;
}

#hlinks a {
	color: #22386a;
	text-decoration: none;
}

#poptop {
    min-height: 48px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	font-size: 14px;
	line-height: 20px;
    flex-shrink: 0;
	background: #22386a;
	color: #eaff00;
	border-bottom: 2px #22386a solid;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
}

#poptop a {
	color: #fff;
	text-decoration: none;
}

#poptop a:hover {
	text-decoration: underline;
}

#popbot {
	min-height: 22px;
	width: 100%;
	font-size: 14px;
	text-align: center;
	line-height: 20px;
	font-size: 10px;
	margin-left: auto;
	margin-right: auto;
    flex-shrink: 0;
	background: #22386a;
	color: #FFFFFF;
	border-bottom: 2px #22386a solid;
}

/* Top navigation redesigned */
.topnav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.topnav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.25px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.topnav-link:hover {
    background: #f0f4f8;
    color: #19529a;
    border-color: #f0f4f8;
    text-decoration: none;
}

#popbot a {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
}

#popbot a:hover {
	text-decoration: underline;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.contact-form-card {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    padding: 20px;
}

#poplinkswrapper {
	background-color: #485f8c;
}

#search_oneclickwrapper {
	background-color: transparent;
    padding-left: 20px;
}

/* =============================================
   RESPONSIVE LAYOUT COMPONENTS
   ============================================= */

/* Sidebar panel (replaces table td#poplinkswrapper) */
.sidebar-panel {
    width: 220px;
    flex-shrink: 0;
    background-color: #22386a;
    transition: transform 0.3s ease;
}

/* Main content area (replaces table td#search_oneclickwrapper) */
.main-content-area {
    flex: 1;
    min-width: 0;
    padding: 0 0 0 20px;
    background: transparent;
    overflow-x: hidden;
}

/* Hamburger button — hidden on desktop */
.hamburger-btn {
    display: none;
}

/* Sidebar close button — hidden on desktop */
.sidebar-close-btn {
    display: none;
}

/* Sidebar overlay backdrop — hidden until activated */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    cursor: pointer;
}

/* =============================================
   TABLET  (768px – 1023px)
   ============================================= */
@media (max-width: 1023px) {
    .sidebar-panel {
        width: 190px;
    }

    .main-content-area {
        padding-left: 14px;
    }

    .content-card {
        padding: 28px 20px;
    }

    #header {
        padding: 10px 14px;
    }

    #htitle h1 {
        font-size: 18px;
    }

    .topnav {
        gap: 6px;
    }

    .topnav-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .page-title {
        font-size: 20px;
    }
}

/* =============================================
   MOBILE  (< 768px)
   ============================================= */
@media (max-width: 767px) {

    /* Sidebar becomes a fixed slide-out drawer */
    .sidebar-panel {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }

    /* Open state */
    .sidebar-panel--open {
        transform: translateX(0);
    }

    /* Show overlay when drawer is open */
    .sidebar-overlay {
        display: block;
    }

    /* Content is full-width on mobile */
    .main-content-area {
        width: 100%;
        padding: 0;
    }

    /* Hamburger bar — full-width bar above content */
    .hamburger-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 11px 16px;
        background: #22386a;
        border: none;
        cursor: pointer;
        text-align: left;
    }

    .hamburger-btn span:not(.hamburger-label) {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        flex-shrink: 0;
    }

    .hamburger-label {
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .hamburger-btn:hover span:not(.hamburger-label) {
        background: #eaff00;
    }

    .hamburger-btn:hover .hamburger-label {
        color: #eaff00;
    }

    /* Sidebar close button — shown on mobile */
    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 16px;
        background: #c0392b;
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 14px;
        flex-shrink: 0;
    }

    .sidebar-close-btn:hover {
        background: #a93226;
    }

    /* Header — compact on mobile */
    #header {
        padding: 8px 12px;
        gap: 8px;
        min-height: auto;
    }

    #htitle h1 {
        font-size: 14px;
        line-height: 1.3;
    }

    #htitle p {
        display: none;
    }

    #htitle img {
        width: 36px;
    }

    /* TopNav — horizontally scrollable on mobile */
    #poptop {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 6px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #poptop::-webkit-scrollbar {
        display: none;
    }

    .topnav {
        flex-wrap: nowrap;
        gap: 6px;
        min-width: max-content;
    }

    .topnav-link {
        padding: 5px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    /* Content card */
    .content-card {
        padding: 16px 14px;
        border-radius: 0;
        margin: 0;
        border-top-width: 3px;
        box-shadow: none;
    }

    .page-title {
        font-size: 17px;
        letter-spacing: 0.5px;
        margin-bottom: 16px;
    }

    .page-content p,
    .page-content li {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Footer responsive */
    #popbot {
        padding: 16px 12px;
        font-size: 12px;
    }
}

/* =============================================
   SMALL MOBILE  (< 480px)
   ============================================= */
@media (max-width: 479px) {
    #htitle h1 {
        font-size: 12px;
    }

    #htitle img {
        width: 30px;
    }

    #hlinks {
        display: none;
    }

    .content-card {
        padding: 12px 10px;
    }

    .page-title {
        font-size: 15px;
    }

    .topnav-link {
        font-size: 10px;
        padding: 4px 8px;
    }
}

.text {  
	font-size: 12px; text-decoration: none; 
	font-weight: normal;
 	color: #000000;
}
