/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    background-color: #f4f5f7;
}

/* Container Structure */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Links */
a {
    color: #005580;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
    color: #003355;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 2px solid #e2e2e2;
    padding: 20px 0;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    max-height: 65px;
    width: auto;
    display: block;
}

.header-tagline h1 {
    font-size: 26px;
    color: #1a365d;
    font-weight: bold;
    margin-bottom: 2px;
}

.header-tagline .tagline {
    font-size: 14px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Sticky Navigation Bar
   ========================================================================== */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1a365d;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    width: 100%;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu a {
    display: block;
    padding: 14px 22px;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background-color: #2b4c7e;
    text-decoration: none;
}

/* ==========================================================================
   Main Layout & Sidebar
   ========================================================================== */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

/* Main Content Stream */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
    min-width: 0; /* Firefox grid item collapse fix */
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 18px;
}

.widget h3 {
    font-size: 16px;
    color: #1a365d;
    border-bottom: 2px solid #005580;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 8px;
}

.widget li:last-child {
    margin-bottom: 0;
}

.widget a {
    font-weight: 500;
}

/* Content Sections & Banners */
.content-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
    overflow: hidden; /* Clips children to rounded corners */
    scroll-margin-top: 60px; /* Offset for sticky menu alignment */
}

/* Section Header Banners with Right-Side Thumbnail Image */
.section-banner {
    margin: -30px -30px 20px -30px;
    background-color: #1a365d;
    padding: 16px 16px 16px 30px;
    border-bottom: 2px solid #005580;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 94px;
}

.section-banner h2 {
    font-size: 20px;
    color: #ffffff;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.banner-thumbnail {
    width: 200px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: #2b4c7e;
    flex-shrink: 0;
}

.content-section p {
    margin-bottom: 14px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.content-section li {
    margin-bottom: 6px;
}

/* ==========================================================================
   Expandable <details> & <summary> Styling
   ========================================================================== */
details.expandable-section {
    display: block;
}

details.expandable-section > summary::-webkit-details-marker,
details.expandable-section > summary::marker {
    display: none;
    content: "";
}

.expand-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    outline: none;
}

.preview-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
}

.read-more-btn {
    align-self: flex-start;
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    background-color: #005580;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.expand-summary:hover .read-more-btn {
    background-color: #1a365d;
    transform: translateY(-1px);
}

.btn-less {
    display: none;
}

details[open] .btn-more {
    display: none;
}

details[open] .btn-less {
    display: inline;
}

.expanded-content {
    margin-top: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Right-Justified Floating Image inside Expanded Sections (250x175px) */
.content-float-img {
    float: right;
    width: 250px;
    height: 175px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #cccccc;
    background-color: #e2e2e2;
    margin: 0 0 15px 20px;
}

/* Sub-content Blocks within Sections */
.sub-content-block {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #cccccc;
}

.sub-content-block h3 {
    font-size: 18px;
    color: #005580;
    margin-bottom: 12px;
}

.sub-content-block h4 {
    font-size: 15px;
    color: #333333;
    margin-top: 14px;
    margin-bottom: 8px;
}

.doc-links {
    margin-top: 12px;
    font-size: 14px;
    font-weight: bold;
}

.contact-details {
    background-color: #f9f9f9;
    border-left: 4px solid #005580;
    padding: 15px;
    margin-top: 15px;
}

.contact-details p {
    margin-bottom: 4px;
}

/* ==========================================================================
   Bottom Notice Banner Section (Matches Section Banner Styling)
   ========================================================================== */
.bottom-notice-section {
    background-color: #1a365d;
    border: 1px solid #005580;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Return to Top Rounded Buttons
   ========================================================================== */
.return-to-top {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
    clear: both;
}

.return-to-top a {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    background-color: #1a365d;
    border: 1px solid #005580;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.return-to-top a:hover,
.return-to-top a:focus {
    background-color: #005580;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.return-to-top a:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
    background-color: #1a365d;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    border-top: 3px solid #005580;
}

.site-footer a {
    color: #abdbe3;
}

.site-footer a:hover {
    color: #ffffff;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 850px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu a {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .content-section {
        padding: 20px;
    }

    .section-banner {
        margin: -20px -20px 15px -20px;
        padding: 12px 12px 12px 20px;
    }

    .banner-thumbnail {
        width: 80px;
        height: 48px;
    }

    /* On very small mobile screens, stack floating image or let it shrink gracefully */
    .content-float-img {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
    }

    .return-to-top {
        text-align: center;
    }
}