/* UPDATED: Cream Theme with Deep Crimson Accent */
:root {
    --bg-color: #fdfbf8;     /* Warm off-white cream background */
    --bg-alt: #f5efe6;       /* Soft warm cream for secondary sections */
    --text-dark: #121212;    /* Dark black/charcoal matching logo dark tone */
    --text-light: #59544e;   /* Muted warm charcoal-brown for body text */
    --accent-color: #900a0a; /* Deep crimson red extracted directly from logo */
    --border-color: #e6dfd5; /* Soft cream border tone */
    --card-bg: #ffffff;     /* Pure white for elevated cards */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

        /* Reset & Transparent Highlight */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: var(--font-body);
            color: var(--text-dark);
            background-color: var(--bg-color);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            overflow-x: hidden;
            line-height: 1.8;
            font-size: 16px;
        }

        a, button, input, textarea {
            outline: none !important;
        }
        
        button:focus, a:focus {
            outline: none !important;
            box-shadow: none !important;
        }

        /* Header */
        header {
            display: flex;
            align-items: center;
            padding: 25px 50px;
            background-color: var(--bg-color);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 50;
            transition: background-color 0.3s;
            flex-wrap: nowrap; /* Prevent header items from wrapping */
            width: 100%;
        }
    
        /* Smooth DUNS Pop-down Tab Animation */
.duns-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.duns-wrapper img {
    cursor: pointer;
    transition: opacity 0.2s;
}

.duns-wrapper img:hover {
    opacity: 0.8;
}

.duns-popup-box {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e8e3dc);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 18px 22px;
    border-radius: 6px;
    z-index: 9999;
    min-width: 190px;
    text-align: left;
    
    /* Animation states */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.3s;
    pointer-events: none;
}

.duns-popup-box.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
    

        /* Animated Menu Icon */
        .menu-icon {
            background: none;
            border: none;
            font-size: 26px;
            color: var(--text-dark);
            cursor: pointer;
            margin-right: 40px;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
        }

        .menu-icon:hover {
            transform: scale(1.1);
            opacity: 0.7;
        }

        .menu-icon.active {
            transform: rotate(90deg);
        }

        /* Close Button Animation */
        .close-btn {
            background: none;
            border: none;
            font-size: 36px;
            color: var(--text-dark);
            cursor: pointer;
            line-height: 1;
            font-weight: 300;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
        }

        .close-btn:hover {
            transform: rotate(90deg) scale(1.1);
            color: var(--accent-color);
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: nowrap;
            white-space: nowrap;
            overflow: hidden; /* Prevent visual overflow */
        }

        .logo-container img {
            height: 40px;
            width: auto;
            flex-shrink: 0;
            display: block;
        }

        .logo-container h1 {
            font-family: var(--font-heading);
            font-size: 26px;
            font-weight: 600;
            letter-spacing: 0.5px;
            color: var(--text-dark);
            margin: 0;
            line-height: 1;
            white-space: nowrap;
            text-overflow: ellipsis; /* Graceful fallback if screen is impossibly small */
            overflow: hidden;
        }

        /* Header Responsive Adjustments for Mobile */
        @media (max-width: 768px) {
            header {
                padding: 15px 20px; /* Reduce padding on small screens */
            }
            .menu-icon {
                margin-right: 15px; /* Reduce gap to logo */
                font-size: 24px;
            }
            .logo-container {
                gap: 10px;
            }
            .logo-container img {
                height: 30px; /* Scale down logo */
            }
            .logo-container h1 {
                font-size: 20px; /* Scale down text to fit */
            }
        }

/* Sidebar Submenu Dropdown */
.sidebar-subnav {
    display: none;
    flex-direction: column;
    background-color: rgba(0,0,0,0.015);
}

.sidebar-subnav.open {
    display: flex;
}

.sidebar-subnav a {
    font-size: 14px !important;
    padding: 12px 40px 12px 55px !important;
}

.nav-link.has-arrow::after {
    content: '↗';
    float: right;
    transition: transform 0.3s;
}

.nav-link.has-arrow.expanded::after {
    transform: rotate(180deg);
}

/* Sidebar Navigation */
        .sidebar {
            position: fixed;
            top: 0;
            left: -320px; /* Adjusted to hide the smaller width completely */
            width: 280px;  /* Reduced width */
            height: 100vh;
            background-color: var(--bg-color);
            box-shadow: 2px 0 20px rgba(0,0,0,0.08);
            z-index: 1000;
            transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .sidebar.open {
            left: 0;
        }

        @media (max-width: 400px) {
            .sidebar {
                width: 240px; /* Scaled down further for very small screens */
                left: -280px;
            }
        }

        .sidebar-header {
            padding: 40px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border-color);
        }

        .sidebar-header span {
            font-family: var(--font-heading);
            font-size: 24px;
            font-style: italic;
            color: var(--text-dark);
        }

.sidebar nav {
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    flex: 1;                 /* Fills available vertical space */
    min-height: 0;           /* Crucial: allows the nav container to shrink and scroll */
    overflow-y: auto;        /* Enables internal scrolling for the sidebar */
    -webkit-overflow-scrolling: touch; /* Enables smooth momentum scrolling on iOS */
    scrollbar-width: none;   /* Hides scrollbar in Firefox */
    -ms-overflow-style: none;/* Hides scrollbar in IE/Edge */
}


/* Hides scrollbar in Chrome, Safari, and Opera */
.sidebar nav::-webkit-scrollbar {
    display: none;
}


/* <--- ADD THIS: Hides scrollbar in Chrome, Safari, and Opera */
.sidebar nav::-webkit-scrollbar {
    display: none;
}

/* UPDATE THIS CSS RULE: */
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 40px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.sidebar nav a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.sidebar-subnav a {
    font-size: 14px !important;
    padding: 12px 30px 12px 45px !important;
}

        .sidebar nav a:hover, .sidebar nav a.active {
            color: var(--accent-color);
            padding-left: 50px;
            background-color: rgba(0,0,0,0.02);
        }

        /* Overlay */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(41, 40, 38, 0.4);
            backdrop-filter: blur(2px);
            z-index: 900;
            display: none;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .overlay.show {
            display: block;
            opacity: 1;
        }

        /* Main Content */
        main {
            flex: 1;
            width: 100%;
        }

        .page {
            display: none;
            animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .page.active {
            display: block;
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Layout Utilities */
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 80px 30px;
        }
        
        .container-narrow {
            max-width: 800px;
            margin: 0 auto;
            padding: 80px 30px;
        }

        .page-title {
            text-align: center;
            margin-bottom: 60px;
        }

.page-title h2 {
            font-family: var(--font-heading);
            font-size: 48px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .page-title p {
            font-size: 18px;
            color: var(--text-light);
            font-family: var(--font-heading);
            font-style: italic;
        }

        @media (max-width: 768px) {
            .page-title h2 {
                font-size: 36px;
            }
        }

        /* Home Page specific */
        .hero {
            text-align: center;
            padding: 100px 30px;
            background-color: var(--bg-alt);
            border-bottom: 1px solid var(--border-color);
        }

        .hero h2 {
            font-family: var(--font-heading);
            font-size: 64px;
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 30px;
            color: var(--text-dark);
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero p {
            font-size: 20px;
            color: var(--text-light);
            max-width: 700px;
            margin: 0 auto 50px auto;
        }

        @media (max-width: 768px) {
            .hero { padding: 60px 20px; }
            .hero h2 { font-size: 42px; }
            .hero p { font-size: 16px; }
        }

        .feature-block {
            display: flex;
            flex-wrap: wrap;
            gap: 60px;
            margin-top: 80px;
            align-items: center;
        }

        .feature-text {
            flex: 1;
            min-width: 300px;
        }

        .feature-text h3 {
            font-family: var(--font-heading);
            font-size: 32px;
            margin-bottom: 20px;
        }

        .feature-image-placeholder {
            flex: 1;
            min-width: 300px;
            height: 400px;
            background-color: var(--bg-alt);
            border: 1px solid var(--border-color);
        }

        /* Buttons */
        .btn {
            display: inline-block;
            text-align: center;
            padding: 18px 40px;
            background-color: var(--text-dark);
            color: #ffffff;
            text-decoration: none;
            font-weight: 400;
            font-size: 13px;
            letter-spacing: 2px;
            text-transform: uppercase;
            transition: background 0.3s, transform 0.2s;
            cursor: pointer;
            border: none;
        }

        .btn:hover {
            background-color: var(--accent-color);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--text-dark);
            border: 1px solid var(--text-dark);
        }

        .btn-outline:hover {
            background-color: var(--text-dark);
            color: #ffffff;
        }

/* Long Form Text Content */
        .long-text h3 {
            font-family: var(--font-heading);
            font-size: 28px;
            margin-top: 50px;
            margin-bottom: 20px;
            color: var(--text-dark);
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 10px;
        }
        
        .long-text h4 {
            font-family: var(--font-body);
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 30px;
            margin-bottom: 15px;
            color: var(--text-dark);
        }

        .long-text p {
            margin-bottom: 25px;
            color: var(--text-light);
        }

        .long-text ul {
            margin-bottom: 25px;
            padding-left: 20px;
            color: var(--text-light);
        }

        .long-text li {
            margin-bottom: 10px;
        }

        /* Pricing Grid */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
        }

        .pricing-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 60px 40px;
            position: relative;
            transition: all 0.4s ease;
            display: flex;
            flex-direction: column;
            text-align: center;
        }

        .pricing-card:hover {
            border-color: var(--text-dark);
            transform: translateY(-5px);
        }

        .pricing-card h3 {
            font-family: var(--font-heading);
            font-size: 26px;
            margin-bottom: 10px;
        }

        .price-box {
            margin: 30px 0;
            padding-bottom: 30px;
            border-bottom: 1px solid var(--border-color);
        }

        .price-box .amount {
            font-family: var(--font-heading);
            font-size: 54px;
            font-weight: 500;
            color: var(--text-dark);
            line-height: 1;
        }

        .price-box .currency {
            font-size: 24px;
            vertical-align: top;
        }

        .price-box .duration {
            display: block;
            color: var(--text-light);
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 10px;
        }

        .pricing-card ul {
            list-style: none;
            margin: 0 0 40px 0;
            padding: 0;
            flex-grow: 1;
            text-align: left;
        }

        .pricing-card ul li {
            position: relative;
            padding-left: 35px;
            margin-bottom: 15px;
            color: var(--text-light);
            font-size: 15px;
        }

        .pricing-card ul li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent-color);
            font-weight: bold;
            font-size: 18px;
        }

/* Contact Details Layout */
        .contact-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
        }
        
        @media (max-width: 768px) {
            .contact-layout {
                grid-template-columns: 1fr;
            }
        }

        .contact-card {
            background: var(--bg-alt);
            padding: 50px;
            border: 1px solid var(--border-color);
        }

        .contact-card h4 {
            font-family: var(--font-heading);
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--text-dark);
        }

        .contact-card p {
            margin-bottom: 15px;
            color: var(--text-light);
        }

        .link-text {
            color: var(--accent-color);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .link-text:hover {
            color: var(--text-dark);
        }

/* Google-style Minimalist Footer with Interactive Popups */
footer {
    background-color: var(--bg-alt, #f4efe9);
    border-top: 1px solid var(--border-color, #e8e3dc);
    padding: 40px 50px 30px 50px;
    margin-top: auto;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 25px;
}

.footer-links a {
    color: var(--text-dark, #292826);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-color, #d89f87);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    color: var(--text-light, #595753);
    font-size: 14px;
    margin-bottom: 20px;
    position: relative;
}

.footer-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: var(--text-light, #595753);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-meta-item:hover {
    color: var(--text-dark, #292826);
}

.footer-meta-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
    display: block;
}

/* Footer Dropdown Menus */
.footer-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.footer-dropdown-box {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e8e3dc);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 15px 18px;
    border-radius: 6px;
    z-index: 1000;
    min-width: 200px;
    text-align: left;
    animation: fadeUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.footer-dropdown-box.open {
    display: block;
}

.footer-dropdown-box a {
    display: block;
    padding: 8px 0;
    color: var(--text-dark, #292826);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color, #f4efe9);
    transition: color 0.2s;
}

.footer-dropdown-box a:last-child {
    border-bottom: none;
}

.footer-dropdown-box a:hover {
    color: var(--accent-color, #d89f87);
}

.footer-legal-line {
    border-top: 1px solid var(--border-color, #e8e3dc);
    width: 100%;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: var(--text-light, #595753);
    font-size: 13px;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 20px;
    }
    .footer-links, .footer-meta {
        gap: 16px;
    }
}
    
    #payments.page {
    height: calc(100vh - 91px);
    overflow: hidden;
}
#payments.page.active {
    display: flex;
    flex-direction: column;
}

/* Smooth Inline Expandable Payment Section */
.payment-more-wrapper {
    position: relative;
    display: inline-block;
}

.payment-more-btn {
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-more-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(144, 10, 10, 0.08);
}

.payment-more-btn span {
    transition: transform 0.3s ease;
}

.payment-more-wrapper.open .payment-more-btn span {
    transform: rotate(180deg);
}

.payment-expandable-box {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.payment-expandable-box.open {
    max-height: 800px; /* Increased to fully fit the extended text without cutting off */
    opacity: 1;
}

/* News & Announcement Ticker Bar */
.ticker-container {
    display: flex;
    align-items: center;
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    height: 42px;
    position: relative;
    z-index: 40;
}

.ticker-label {
    background-color: var(--accent-color);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    z-index: 2;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerMove 28s linear infinite;
}

/* Pause scrolling when user hovers over the ticker */
.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.ticker-item:hover {
    color: var(--accent-color);
}

.ticker-bullet {
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

.ticker-date {
    font-size: 11px;
    color: var(--text-light);
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes tickerMove {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustment for mobile screens */
@media (max-width: 768px) {
    .ticker-label {
        padding: 0 12px;
        font-size: 10px;
    }
    .ticker-item {
        font-size: 13px;
        padding: 0 18px;
    }
}

    /* IUB (Information & Updates Bureau) Newsroom Styles */
.iub-container {
    max-width: 950px;
    margin: 0 auto;
}

.iub-search-bar {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 6px;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.iub-search-bar:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(144, 10, 10, 0.05);
    outline: none;
}

.iub-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 35px;
    border-radius: 6px;
    margin-bottom: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.iub-card.highlight {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(144, 10, 10, 0.015) 100%);
    box-shadow: 0 6px 25px rgba(144, 10, 10, 0.06);
}

.iub-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.iub-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    background: var(--bg-alt);
    padding: 4px 10px;
    border-radius: 4px;
}

.iub-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 45px;
}

.iub-page-btn {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.iub-page-btn.active, .iub-page-btn:hover {
    background: var(--text-dark);
    color: #ffffff;
    border-color: var(--text-dark);
}

/* --- Enterprise Minimalist Filter Styles --- */
.iub-enterprise-filter {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.iub-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    color: var(--text-light);
}

.iub-minimal-search {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-dark);
    font-family: var(--font-body);
    outline: none;
}

.iub-date-picker-wrapper {
    position: relative;
}

.iub-date-trigger {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s;
}

.iub-date-trigger:hover {
    border-color: var(--accent-color);
}

.iub-date-popup {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 16px;
    border-radius: 8px;
    width: 240px;
    z-index: 100;
}

.iub-date-popup.open {
    display: block;
}

.iub-date-input-box {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-dark);
}

/* Attachment Styles */
.iub-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.attachment-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.attachment-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ==========================================
   Login Portal Styles (Consolidated)
   ========================================== */
.login-wrapper {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--bg-alt, #f5efe6);
}

.login-box {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e6dfd5);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px 45px;
}

.login-box-header {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
}

.login-logo-mini {
    height: 38px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.login-box-header h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 28px;
    color: var(--text-dark, #121212);
    margin-bottom: 8px;
    text-align: left;
}

.login-box-header p {
    font-size: 14px;
    color: var(--text-light, #59544e);
    margin: 0;
    text-align: left;
    line-height: 1.6;
}

.login-field {
    margin-bottom: 22px;
}

.login-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark, #121212);
    text-align: left;
}

.login-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color, #e6dfd5);
    background: var(--card-bg, #ffffff);
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 14px;
    color: var(--text-dark, #121212);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
    border-color: var(--accent-color, #900a0a);
    box-shadow: 0 0 0 3px rgba(144, 10, 10, 0.06);
    outline: none;
}

.login-forgot {
    font-size: 13px;
    color: var(--accent-color, #900a0a);
    text-decoration: none;
    font-weight: 600;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.login-captcha-display {
    flex: 1;
    padding: 10px 15px;
    background: var(--bg-alt, #f5efe6);
    border: 1px solid var(--border-color, #e6dfd5);
    border-radius: 4px;
    font-family: monospace;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 5px;
    color: var(--text-dark, #121212);
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.login-refresh-btn {
    background: transparent;
    border: 1px solid var(--border-color, #e6dfd5);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-dark, #121212);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.login-refresh-btn:hover {
    border-color: var(--accent-color, #900a0a);
    color: var(--accent-color, #900a0a);
}

.login-submit-btn {
    width: 100%;
    padding: 13px;
    background-color: var(--text-dark, #121212);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.login-submit-btn:hover {
    background-color: var(--accent-color, #900a0a);
}

.login-divider {
    border: none;
    border-top: 1px solid var(--border-color, #e6dfd5);
    margin: 25px 0 20px 0;
}

.login-footer-links {
    text-align: center;
}

.login-footer-links a {
    font-size: 14px;
    color: var(--accent-color, #900a0a);
    text-decoration: none;
    font-weight: 600;
}

.login-footer-links a:hover {
    text-decoration: underline;
}

.login-alert {
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Smooth Login Sub-View Transitions */
.login-view-section {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-view-section.active-subview {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
