/* Top Banner Styles - Only custom styles not available in Bootstrap */
.top-banner {
    background-color: #051c2c;
    font-family: 'Poppins', sans-serif;
}

/* Contact Information - Icon sizes */
.contact-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

.contact-item:last-child .contact-icon {
    width: 18px;
    height: 18px;
}

/* Trust Statement */
.trust-dropdown .btn-link {
    font-size: 14px;
}

.trust-dropdown .dropdown-toggle::after {
    display: none !important;
}

/* Trust Dropdown Menu - White Box with Organizations */
.trust-dropdown-menu {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100%;
    max-width: 1200px !important;
    transform: translateY(-10px) scale(0.95) !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, max-height 0.3s ease-in-out, margin 0.3s ease-in-out, padding 0.3s ease-in-out;
    visibility: hidden;
    pointer-events: none;
    display: block !important;
    position: relative !important;
}

.trust-dropdown-menu.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-height: none !important;
    padding: 1rem !important;
    margin: 1rem auto 1rem auto !important;
}

.organizations-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.organizations-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.organization-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    flex: 1;
    max-width: 200px;
}

.organization-logo-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.logo-placeholder {
    text-align: center;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.5rem;
}

.dropdown-chevron {
    width: 10px;
    height: 6px;
    margin-left: 6px;
    align-self: center;
}

/* Language Selector */
.flag-icon {
    width: 25px;
    height: 25px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 6px;
}

.dropdown .btn-link {
    color: #ffffff !important;
    font-size: 14px;
}

.dropdown .dropdown-toggle::after {
    display: none !important;
}

.dropdown-menu {
    background-color: #051c2c;
    border: none;
    margin-top: 8px;
}

.dropdown-item {
    color: #ffffff;
    font-size: 14px;
    padding: 8px 16px;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Login Section */
.login-section {
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
}

.user-icon {
    width: 18px;
    height: 19px;
    margin-right: 8px;
}

.login-link {
    color: #039BC1;
    text-decoration: underline;
}

.login-link:hover {
    color: #039BC1;
    text-decoration: underline;
}

/* Responsive adjustments - Large tablets and small desktops */
@media (max-width: 1200px) {
    .trust-dropdown-menu {
        max-width: 95% !important;
    }
    
    .organizations-row {
        gap: 1.5rem;
    }
}

/* Responsive adjustments - Medium screens where items wrap */
@media (max-width: 992px) {
    .trust-dropdown-menu {
        max-width: 98% !important;
    }
    
    .organizations-row {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .organization-logo {
        min-width: 140px;
        max-width: 180px;
        flex: 0 1 auto;
    }
}

/* Responsive adjustments - Tablets */
@media (max-width: 768px) {
    .contact-item {
        font-size: 12px;
    }
    
    .trust-dropdown .btn-link {
        font-size: 12px;
    }
    
    .login-section {
        font-size: 12px;
    }
    
    .trust-dropdown-menu {
        max-width: 100% !important;
        border-radius: 16px !important;
    }
    
    .trust-dropdown-menu.show {
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    .organizations-container {
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }
    
    .organizations-container::-webkit-scrollbar {
        height: 4px;
    }
    
    .organizations-container::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .organizations-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
    
    .organizations-row {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        flex-wrap: nowrap;
        min-width: max-content;
    }
    
    .organizations-row:first-child {
        margin-right: 1rem;
    }
    
    .organization-logo {
        min-width: 120px;
        max-width: 120px;
        flex: 0 0 auto;
    }
    
    .logo-placeholder {
        font-size: 12px;
    }
}

/* Responsive adjustments - Mobile */
@media (max-width: 576px) {
    .top-banner .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .trust-dropdown-menu {
        border-radius: 12px !important;
    }
    
    .trust-dropdown-menu.show {
        padding: 0.75rem !important;
        margin: 0.75rem 0 !important;
    }
    
    .organizations-container {
        flex-direction: row;
        gap: 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }
    
    .organizations-container::-webkit-scrollbar {
        height: 3px;
    }
    
    .organizations-container::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .organizations-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
    
    .organizations-row {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: nowrap;
        min-width: max-content;
    }
    
    .organizations-row:first-child {
        margin-right: 0.75rem;
    }
    
    .organization-logo {
        min-width: 100px;
        max-width: 100px;
        flex: 0 0 auto;
    }
    
    .logo-placeholder {
        font-size: 11px;
        padding: 0.25rem;
    }
}

/* Responsive adjustments - Smallest mobile (320px) */
@media (max-width: 320px) {
    .top-banner {
        padding: 8px 0 !important;
    }
    
    .contact-item {
        font-size: 10px;
    }
    
    .contact-icon {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
    
    .trust-dropdown .btn-link {
        font-size: 10px;
    }
    
    .login-section {
        font-size: 10px;
    }
    
    .user-icon {
        width: 14px;
        height: 15px;
        margin-right: 4px;
    }
    
    .flag-icon {
        width: 20px;
        height: 20px;
    }
    
    .dropdown-chevron {
        width: 8px;
        height: 5px;
    }
    
    .trust-dropdown-menu {
        border-radius: 10px !important;
    }
    
    .trust-dropdown-menu.show {
        padding: 0.5rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .organizations-container {
        flex-direction: row;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }
    
    .organizations-container::-webkit-scrollbar {
        height: 2px;
    }
    
    .organizations-container::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .organizations-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 1px;
    }
    
    .organizations-row {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: nowrap;
        min-width: max-content;
    }
    
    .organizations-row:first-child {
        margin-right: 0.5rem;
    }
    
    .organization-logo {
        min-width: 80px;
        max-width: 80px;
        flex: 0 0 auto;
    }
    
    .logo-placeholder {
        font-size: 9px;
        padding: 0.2rem;
        line-height: 1.2;
    }
}

