/* ==========================================================================
   1. BASE PAGE LAYOUT RULES
   ========================================================================== */
html {
    height: 100%;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #FFFFFF;
    color: #000000;
    font-family: Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* Global Content Links Layout */
main a:link, .content-container a { color: #0000C8; text-decoration: underline; }
main a:visited { color: #ff0000; }
main a:hover, .content-container a:hover { color: #4DAAF1; }

/* Structural Content Blocks */
.content-container {
    width: 80%;
    max-width: 800px;
    background-color: #FFFFFF;
    margin: 40px auto 0 auto;
    padding-bottom: 40px;
}

.main-title {
    color: #06068E;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
}

.main-subtitle {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.15rem;
    font-style: italic;
    color: #475569;
}

h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 5px 0;
}

ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
    list-style-type: none;
}

ul li {
    margin-bottom: 10px;
}

.footer p {
    margin: 0;
}

/* ==========================================================================
   2. BOOTSTRAP-STYLE FLEXBOX NAVIGATION MENU
   ========================================================================== */
.nav-container {
    background-color: #C7E3F8;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0 4px 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.nav-item {
    flex: 0 1 auto;
}

.nav-menu a {
    display: block;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    color: #007bff;
    background-color: #ffffff;
    border: 1px solid #007bff;
    border-radius: 4px;
    line-height: 1.2;
    padding: 6px 18px;
    white-space: nowrap;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out, transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.nav-menu a:hover {
    color: #ffffff;
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-menu a.active, .nav-item a.active {
    color: #ffffff !important;
    background-color: #004085 !important;
    border-color: #002752 !important;
    border-bottom: 2px solid blue;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2);
}

/* ==========================================================================
   3. BACKGROUND PHOTO LAYOUT ENGINE (Index Screen)
   ========================================================================== */
.bg-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg {
    background-image: url("img/index.png");
    height: 100%;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   4. IMAGE SLIDER & GALLERY SYSTEMS
   ========================================================================== */
.gallery-container, .slider-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
}

.gallery-container {
    position: relative;
}

.slider-wrapper {
    overflow: hidden;
    background-color: #ffffff;
}

.slider-wrapper:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" width="24" height="24" fill="%23555555" viewBox="0 0 24 24"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>'), pointer;
}

.slidercontainer {
    max-width: 800px;
    position: relative;
    margin: 30px auto 0 auto;
    padding: 0 40px;
}

.slideshow-container {
    display: flex;
    overflow-x: hidden;
    background-color: #ffffff;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slideshow-container::-webkit-scrollbar {
    display: none;
}

.showSlide {
    display: none;
    text-align: center;
}

.showSlide img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
}

.slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
    background-color: #ffffff;
    padding-bottom: 25px;
    scroll-snap-align: start;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    filter: grayscale(100%) contrast(110%);
}

/* Slide Navigational Arrows */
.left, .right {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    color: #ffffff;
    font-weight: bold;
    font-size: 24px;
    background-color: rgba(0, 123, 255, 0.7);
    border-radius: 4px;
    text-decoration: none;
    user-select: none;
}

.left { left: 0; }
.right { right: 0; }
.left:hover, .right:hover { background-color: rgba(0, 86, 179, 0.9); }

/* ==========================================================================
   5. SPECIFIC COMPONENT STYLES (Fees, Help Center, Cards)
   ========================================================================== */
.article-content p { font-size: 16px; line-height: 1.6; color: #000000; margin-bottom: 25px; }
.article-content p:not(.tutorial-alert) { text-indent: 30px; }

.section-subtitle {
    display: block;
    font-weight: bold;
    color: #06068E;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.center-info-block { text-align: center; margin-top: 40px; }
.price-disclaimer { font-size: 12px; color: #666666; text-align: center; margin-top: 30px; }

/* Badges */
.usa-badge-container { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; font-weight: bold; }
.usa-badge-container img { width: 32px; height: 21px; display: inline-block; vertical-align: middle; }

/* Help Center Components */
.help-center-header { text-align: center; font-size: 20px; line-height: 1.4; color: #222222; margin-bottom: 40px; }
.help-center-header strong { font-size: 28px; color: #06068E; }
.help-center-header img { display: inline-block; vertical-align: middle; margin: 0 5px; }
.inventor-article p { font-size: 16px; line-height: 1.7; color: #000000; margin-bottom: 25px; text-align: left; }
.inventor-article p.indented-paragraph { text-indent: 30px; }
.drop-cap { font-size: 28px; font-family: 'Georgia', 'Times New Roman', cursive, serif; font-weight: bold; color: #06068E; line-height: 1; }
.sign-off { margin-top: 40px; font-weight: bold; line-height: 1.4; }

/* Contact Page Block Targets */
.contact-page .center-info-block { text-align: center; margin-bottom: 30px; }
.contact-page .address-text { font-size: 1.15rem; line-height: 1.5; }
.contact-page .split-layout-container { display: flex; justify-content: space-between; align-items: center; max-width: 500px; margin: 0 auto; padding: 20px 10px; }
.contact-page .layout-left { display: flex; align-items: center; gap: 15px; }
.contact-page .delivery-text { line-height: 1.3; font-weight: 500; }
.contact-page .layout-right { display: flex; align-items: center; }

/* Resource Packet Cards */
.resource-packet-grid { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin: 30px auto; padding: 0 15px; }
.resource-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}
.resource-card:hover {
    transform: translateY(-4px);
    border-color: #9ca3af;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}
.card-image-box { display: flex; align-items: center; justify-content: center; padding: 15px 20px; background-color: #f8fafc; border-right: 1px solid #e2e8f0; min-width: 100px; height: 70px; }
.card-image-box img { max-height: 45px; width: auto; }
.card-content-box { padding: 15px 20px; flex: 1; }
.card-content-box h3 { margin: 0; font-size: 1.05rem; color: #1e293b; font-weight: 600; line-height: 1.4; }
.inventright-card { justify-content: center; }
.inventright-card .full-width-image { border-right: none; background-color: #ffffff; width: 100%; height: 80px; }
.inventright-card .full-width-image img { max-height: 55px; }
.attorney-links li a { font-weight: bold; line-height: 1.8; }

/* Notice & Alert Boxes */
.tutorial-alert {
    display: block;
    color: #A83232;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 15px 20px;
    border-left: 4px solid #A83232;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.hover-notice {
    position: relative;
    display: block;
    clear: both;
    width: max-content;
    margin: 20px auto 0 auto;
    z-index: 10;
    background-color: rgba(245, 245, 245, 0.9);
    border: 1px solid #e0e0e0;
    color: #555555;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-container:hover .hover-notice {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border-color: transparent;
}

/* ==========================================================================
   6. GLOBAL MEDIA QUERIES (Unified Device Engine)
========================================================================== */
@media (min-width: 769px)
{.bg
{ background-size: cover; }
}@media (max-width: 768px)
{/* Base Content Overrides */.content-container
{ width: 90%; margin: 20px auto 0 auto; padding-bottom: 20px;
}
/* Layout & Image Backgrounds */
.bg-container { padding: 20px; 
}.bg { background-size: contain; 
}
/* Stacked Navigation Columns */
.nav-container { padding: 10px 0; height: auto; 
}
.nav-menu { flex-direction: column; width: 100%; gap: 8px; padding: 5px 0;
}
.nav-item { width: 85%;
}
.nav-menu a { padding: 8px 0; font-size: 14px; text-align: center;
}
/* Responsive Component Assets */
.slidercontainer { max-width: 95%; margin: 15px auto 0 auto; padding: 0 35px;
}
.showSlide img { max-width: 100%; max-height: 45vh; width: auto; height: auto;
}
.left, .right { padding: 8px; font-size: 18px;
}.slide { height: 250px;
}}