/* ============================================
   Elementor Sidebar Template Styles
   Matching Central Bank of Kenya Design
   ============================================ */

/* Main Layout Container */


/* Banner Section */
/* Banner Section */
.sidebar-page-banner {
    background-color: #0c3c84;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%), 
                      linear-gradient(225deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%), 
                      linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%), 
                      linear-gradient(315deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%);
    background-size: 100px 100px;
    padding: 80px 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
}

/* Custom Banner Styles */
.sidebar-page-banner.has-custom-banner {
    background-size: cover;
}

/* Overlay for readability on custom images */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
    display: none; /* Hidden by default */
}

.sidebar-page-banner.has-custom-banner .banner-overlay {
    display: block; /* Show only for custom banners */
}

.banner-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 2; /* Ensure text is above overlay */
}

.banner-title {
    /*color: #ffffff !important;*/
    /*font-family: "Poppins", sans-serif !important;*/
    /*font-size: 48px !important;*/
    /*font-weight: 700 !important;*/
    /*margin: 0 !important;*/
    /*line-height: 1.2 !important;*/
}

/* responsive banner */
@media (max-width: 768px) {
    .sidebar-page-banner {
        padding: 50px 0;
        margin-bottom: 30px;
    }

    .banner-title {
        /*font-size: 32px !important;*/
    }
}

.elementor-sidebar-container {
    display: flex;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 50px 50px;
    align-items: flex-start;
}

/* Main Content Area */
.elementor-main-content {
    flex: 1;
    min-width: 0;
}

/* Ensure Elementor sections are full width within their container */
.elementor-main-content .elementor-section.elementor-section-boxed>.elementor-container {
    max-width: 100%;
}

.elementor-main-content .elementor-section {
    width: 100%;
}

/* Floating Sidebar - Matching CBK Design */
.elementor-floating-sidebar {
    width: 100%;
    /* flex-shrink: 0; */
    /* position: sticky; */
    /* top: 20px; */
    max-width: 366px !IMPORTANT;
    max-height: unset !important;
}

/* Sidebar Sections - Blue Theme */
.sidebar-section {
    background: #2952a3;
    /* color: #ffffff; */
    /* margin-bottom: 15px; */
    /* border-radius: 8px; */
    /* overflow: hidden; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
}

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

/* Remove background for shortcode sections */
.sidebar-section.sidebar-exchange-rates,
.sidebar-section.sidebar-key-rates {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 15px;
}

/* Force blue background on shortcode content */
.sidebar-section.sidebar-key-rates>*,
.sidebar-section.sidebar-key-rates .key-rates-widget,
.sidebar-section.sidebar-key-rates .key-rates-container {
    background: #2952a3 !important;
    color: #ffffff !important;
}

/* Ensure all text in key rates is white */
.sidebar-section.sidebar-key-rates * {
    color: #ffffff !important;
}

/* Sidebar Section Header - Matching CBK Style */
.sidebar-section-header {
    display: flex;
    align-items: self-start;
    gap: 20px;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    flex-direction: column;
}

.sidebar-section-header svg,
.sidebar-section-header .dashicons {
    font-size: 38px;
    color: #ffffff;
    width: 100%;
    max-width: 41px !important;
    height: 41px;
    margin: 0 !IMPORTANT;
}

.sidebar-section-header h3 {
    margin: 0;
    color: #ffffff;
    width: 100% !important;
    padding: 0 !IMPORTANT;
    font-size: 24px ! IMPORTANT;
    font-family: "Poppins", sans-serif !important;
    line-height: 100% !important;
    font-weight: 600 !IMPORTANT;
}

/* Sidebar Section Content */
.sidebar-section-content {
    padding: 15px 10px;
}

/* Search Section - White Background */
.sidebar-search {
    /* background: #ffffff; */
    /* padding: 15px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.sidebar-search-wrapper {
    position: relative;
}

.sidebar-search-wrapper input[type="search"],
.sidebar-search-wrapper input[type="text"] {
    /* width: 100%; */
    /* padding: 12px 40px 12px 15px; */
    /* border: 1px solid #ddd; */
    /* border-radius: 4px; */
    /* font-size: 14px; */
    /* background: #f9f9f9; */
}

.sidebar-search-wrapper input[type="search"]:focus,
.sidebar-search-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #2952a3;
    background: #ffffff;
}

.sidebar-search-wrapper button,
.sidebar-search-wrapper input[type="submit"] {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-51%);
    padding: 8px 12px;
    background: #f0a500;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-search-wrapper button:hover,
.sidebar-search-wrapper input[type="submit"]:hover {
    background: #d99400;
}

/* Exchange Rates Section */
.exchange-rates-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exchange-rate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
}

.exchange-rate-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exchange-rate-item:first-child {
    padding-top: 0;
}

.currency-flag {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.currency-flag img {
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.currency-code {
    font-weight: 600;
    flex: 1;
    text-transform: uppercase;
}

.exchange-rate-value {
    font-weight: 700;
    font-size: 15px;
    font-family: 'Courier New', monospace;
}

/* Key Rates Section */
.key-rates-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.key-rate-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.key-rate-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.key-rate-item:first-child {
    padding-top: 0;
}

.key-rate-name {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}

.key-rate-value {
    font-weight: 700;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

/* Auction Results Section */
.auction-results-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auction-result-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border-left: 3px solid #f0a500;
}

.auction-date {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

.auction-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.auction-status.status-completed {
    background: #4caf50;
    color: #ffffff;
}

.auction-status.status-upcoming {
    background: #2196f3;
    color: #ffffff;
}

.auction-status.status-ongoing {
    background: #ff9800;
    color: #ffffff;
}

.auction-status.status-cancelled {
    background: #f44336;
    color: #ffffff;
}

.sidebar-note {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
    opacity: 0.7;
    font-style: italic;
    text-align: center;
}

.sidebar-no-data {
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
    padding: 15px 0;
}

/* Auction Results Widget Styles */
.auction-results-widget {
    background: #2952a3;
    color: #ffffff;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.auction-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.auction-widget-header .dashicons,
.auction-widget-header svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.auction-widget-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.auction-widget-content {
    padding: 15px 20px;
}

/* List Layout */
.auction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auction-item {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border-left: 3px solid #f0a500;
    transition: background 0.3s ease;
}

.auction-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.auction-item a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.auction-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auction-title {
    font-weight: 600;
    font-size: 14px;
}

/* Cards Layout */
.auction-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.auction-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid #f0a500;
}

.auction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auction-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.auction-card-header {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
}

.auction-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
}

.auction-card-body {
    padding: 15px;
}

.auction-card-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.auction-card-date {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

/* Table Layout */
.auction-table {
    width: 100%;
    border-collapse: collapse;
}

.auction-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.auction-table th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.auction-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.auction-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.auction-table a {
    color: #ffffff;
    text-decoration: underline;
}

.auction-table a:hover {
    text-decoration: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .elementor-sidebar-container {
        flex-direction: column;
    }

    .elementor-floating-sidebar {
        width: 100%;
        max-width: 100% !important;
        position: unset !important;
        animation: unset !important;
        box-shadow: none !important;
    }

    .auction-button {
        width: 100%;
        max-width: max-content;
    }
}

@media (max-width: 768px) {
    .elementor-sidebar-container {
        padding: 20px;
    }

    .sidebar-section-header h3 {
        font-size: 22px !important;
    }

    .sidebar-section-header svg,
    .sidebar-section-header .dashicons {
        font-size: 32px;
        max-width: 35px !important;
        height: 35px;
    }
}

/* Scrollbar Styling for Sidebar */
.elementor-floating-sidebar::-webkit-scrollbar {
    width: 6px;
}

.elementor-floating-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.elementor-floating-sidebar::-webkit-scrollbar-thumb {
    background: #2952a3;
    border-radius: 3px;
}

.elementor-floating-sidebar::-webkit-scrollbar-thumb:hover {
    background: #1f3d7a;
}

/* Icon Styling */
.sidebar-section-header .dashicons-chart-line:before {
    content: "\f239";
}

.sidebar-section-header .dashicons-money-alt:before {
    content: "\f526";
}

.sidebar-section-header .dashicons-megaphone:before {
    content: "\f488";
}

/* Additional Widget Styling */
.est-sidebar-widget-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.est-sidebar-widget-wrapper .sidebar-section {
    margin-bottom: 0;
}

.auction-buttons-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.auction-button {
    flex: 1;
    gap: 5px;
    padding: 11px 11px;
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    fill: var(--e-global-color-secondary);
    color: var(--e-global-color-secondary) !important;
    text-decoration: none;
    border-radius: 3px;
}


.auction-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.forex-widget-button {
    text-decoration: none;
}


@media (max-width: 1199px) {
    .elementor-sidebar-container {
        padding-inline: 20px;
    }
}

@media (max-width: 400px) {
    .forex-widget-footer {
        flex-direction: column;
        align-items: self-start !important;
    }

    .auction-buttons-wrapper {
        flex-direction: column;
    }
}