/*
 * Joweni M-Pesa GlobalPay - Page-Specific Stylesheet (Complete Redesign)
 * @version 5.0.0
 * @date 2025-06-16
 */

/* ======================================= */
/* 1. GENERAL & SHARED STYLES              */
/* ======================================= */
.section-heading {
    font-family: 'Bungee', sans-serif;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-dark-color);
}

[data-theme="dark"] .section-heading {
    color: var(--year-header-color);
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
    color: var(--text-secondary-color);
    line-height: 1.7;
}
/*
==================================================================
  CSS for M-Pesa Global Transfer Calculator Section
==================================================================
  This CSS restyles the international calculator section to have a 
  full-width background that matches the header, with the calculator 
  appearing as a white card inside it.
*/

/* * 1. Transform the section from a card into a full-width background container.
 */
#international-calculator-section {
    background-color: var(--header-bg-color); /* Same green as the site header */
    color: var(--primary-color-text); /* Default text color to white for this section */
    
    /* Make the section stretch to the full viewport width */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    
    /* Add negative margin to counteract the main container's padding, ensuring it touches the ticker bar */
    margin-top: -2rem; 
    padding: var(--spacing-xxl) var(--spacing-lg); /* Add vertical and horizontal padding */
    
    /* Remove card-like styling from the section itself */
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* * 2. Style the headings to be light and readable on the new dark background.
 */
#international-calculator-section .section-heading,
#international-calculator-section .section-subtitle {
    color: var(--primary-color-text); /* White heading text */
    max-width: 900px; /* Constrain text for readability */
    margin-left: auto;
    margin-right: auto;
}

#international-calculator-section .section-subtitle {
    color: var(--year-header-color); /* Use a slightly off-white for the subtitle */
    opacity: 0.95;
}

/* Style the heading's underline to be visible on the dark green background */
#international-calculator-section .section-heading::after {
    background-color: var(--primary-color); /* Use the main M-Pesa green for the underline */
}

/* * 3. Style the main calculator wrapper to look like a "white card".
 * This is the original CSS from the user, preserved and now correctly placed.
 */
.interactive-converter-wrapper {
 
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);  
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: var(--spacing-xl) auto 0 auto;
}

.converter-main-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .converter-main-inputs {
        flex-direction: row;
        align-items: flex-end; /* Align to bottom of labels */
    }
}

.converter-panel {
    width: 100%;
    flex: 1;
}

.converter-panel .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary-color);
}

.input-group {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--surface-color);
    transition: border-color var(--transition-speed-fast), box-shadow var(--transition-speed-fast);
}
.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 176, 42, 0.2);
}

.input-group .form-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: var(--spacing-md);
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    -moz-appearance: textfield; /* Firefox */
    color: var(--text-primary-color); /* Ensure input text is dark */
}
.input-group .form-input::-webkit-outer-spin-button,
.input-group .form-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-group .form-input:focus {
    outline: none;
    box-shadow: none;
}

.input-group .form-select,
.input-group .currency-display {
    flex-shrink: 0;
    background: var(--surface-alt-color);
    border: none;
    border-left: 2px solid var(--border-color);
    padding: 0 var(--spacing-md);
    font-weight: 600;
    color: var(--text-primary-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.input-group .form-select:focus {
    outline: none;
    box-shadow: none;
}
.country-flag-small {
    width: 24px;
    height: auto;
}

#swap-currency-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--surface-color);
    color: #2a2823;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, background-color 0.2s;
    margin-bottom: var(--spacing-sm); /* Align with inputs on mobile */
}

#swap-currency-btn:hover {
    transform: rotate(180deg);
    background-color: var(--surface-alt-color);
}

.converter-details {
    padding: var(--spacing-lg);
    background-color: var(--surface-alt-color);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color-light);
}

.live-rate-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary-color);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.transfer-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.transfer-summary li {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color-light);
    align-items: center;
    color: var(--text-primary-color); /* FIX: Set default text color for list items */
}
.transfer-summary li:last-child {
    border-bottom: none;
}
.transfer-summary p{
  color: #2a2823;
}

.transfer-summary .summary-label {
    color: var(--text-secondary-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.transfer-summary .summary-label i {
    color: var(--primary-color);
}
[data-theme="dark"] .transfer-summary .summary-label i {
    color: var(--primary-color-dark);
}

.transfer-summary .summary-value {
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--text-primary-color); /* FIX: Explicitly set value color */
}

.transfer-summary .summary-total {
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    border-top: 2px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary-color); /* FIX: Set total row text color */
}

.transfer-summary .summary-total .summary-value {
    color: var(--primary-color); /* Highlight the final total value */
}

/* * 4. Style the informational text at the bottom of the section.
 */
#international-calculator-section #rate-source-info {
    color: var(--logo-icon-color); /* A light, muted color */
    text-align: center;
    display: block;
    margin-top: var(--spacing-lg);
}

.quick-conversion-table-container {
    margin-top: var(--spacing-xl);
}

.quick-conversion-table-container .subsection-heading {
    text-align: center;
    border-bottom: none;
    color: var(--text-primary-color);
}

.quick-conversion-table-container .table-responsive-wrapper {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden; /* Ensures the border radius is applied to the table corners */
    max-width: 500px;
    margin: 0 auto;
}

.quick-conversion-table-container .styled-table {
    width: 100%;
    border-collapse: collapse;
}

.quick-conversion-table-container .styled-table th,
.quick-conversion-table-container .styled-table td {
    color: var(--text-primary-color); 
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color-light);
}

.quick-conversion-table-container .styled-table th {
    color: var(--text-secondary-color);
    font-weight: 600;
}

.quick-conversion-table-container .styled-table thead {
    background-color: var(--surface-alt-color);
}

.quick-conversion-table-container .styled-table tbody tr:last-child td {
    border-bottom: none;
}

.quick-conversion-table-container .styled-table tbody tr:hover {
    background-color: var(--primary-color-light);
}

/* * 6. Dark mode styles for the table */
[data-theme="dark"] .quick-conversion-table-container .styled-table th,
[data-theme="dark"] .quick-conversion-table-container .styled-table td {
    color: var(--text-primary-color);
    border-color: var(--border-color);
}
[data-theme="dark"] .quick-conversion-table-container .styled-table tbody tr:hover {
    background-color: rgba(67, 176, 42, 0.15);
}

/* FIX: Dark mode styles for summary details */
[data-theme="dark"] .transfer-summary li {
    color: var(--text-primary-color);
}
[data-theme="dark"] .transfer-summary .summary-label {
    color: var(--text-secondary-color);
}
[data-theme="dark"] .transfer-summary .summary-value {
    color: var(--text-primary-color);
}
[data-theme="dark"] .transfer-summary .summary-total .summary-value {
    color: var(--primary-color);
}


/* ======================================================== */
/* 3. SMART ONLINE PAYMENT CALCULATOR                       */
/* ======================================================== */
#virtual-card-estimator-section {
    margin-bottom: var(--spacing-xxl);
}

/* Heading is now outside the card */
#virtual-card-estimator-section .card-styled {
    padding: 0;
    overflow: hidden;
}

.smart-payment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 992px) {
    .smart-payment-grid {
        grid-template-columns: 1fr 400px;
    }
}

.smart-payment-visual {
    padding: var(--spacing-xl);
    background-color: var(--surface-alt-color);
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    
}

@media (min-width: 992px) {
    .smart-payment-visual {
        order: 2;
    }
}

[data-theme="dark"] .smart-payment-visual {
    background-color: #2a2a2a;
}

.smart-payment-visual .feature-image {
    max-width: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.smart-payment-interactive {
    padding: var(--spacing-xl);
    order: 2;
}

@media (min-width: 992px) {
    .smart-payment-interactive {
        order: 1;
    }
}

.radio-group-horizontal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.payment-scenario-card {
    background-color: var(--surface-alt-color);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.payment-scenario-card p {
    color: var(--text-secondary-color);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg) auto;
}

#foreign-currency-calculator,
#kes-payment-info {
    text-align: left;
}

#kes-cost-results {
    font-weight: 600;
}

/*
========================================================
   NEW SECTION: "BEST WAY TO RECEIVE" SCENARIO SIMULATOR
========================================================
*/

#receive-money-simulator-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.receive-simulator-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    align-items: flex-end;
}

@media (min-width: 768px) {
    .receive-simulator-form {
        grid-template-columns: 1fr 1fr auto;
    }
}

.receive-simulator-form .form-group {
    display: flex;
    flex-direction: column;
}

.receive-simulator-form .form-label {
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-secondary-color);
}

.receive-simulator-form .form-input,
.receive-simulator-form .form-select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--surface-color);
    color: var(--text-primary-color);
    font-size: 1rem;
    transition: border-color var(--transition-speed-fast), box-shadow var(--transition-speed-fast);
}

.receive-simulator-form .form-input:focus,
.receive-simulator-form .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 176, 42, 0.2);
}

.receive-simulator-form .btn {
    padding: var(--spacing-md);
    height: auto;
}

.receive-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    animation: fadeIn 0.5s ease-out;
}

.receive-results-grid.hidden {
    display: none;
}

.receive-result-card {
    background-color: var(--surface-alt-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.receive-result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.receive-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-md) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--text-primary-color);
}

.receive-card-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.receive-card-final-amount {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.1;
}

.receive-card-breakdown {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    flex-grow: 1; /* Pushes the breakdown down if cards have different heights */
}

.receive-card-breakdown p {
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.5;
    min-height: 60px; /* Ensures consistent height for the description paragraph */
}

.receive-card-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.receive-card-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-top: 1px solid var(--border-color-light);
}

.best-value-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: var(--success-color);
    color: #fff;
    padding: var(--spacing-xs) var(--spacing-lg);
    font-size: 0.8rem;
    font-weight: 700;
    border-bottom-left-radius: var(--border-radius-md);
    animation: popIn 0.5s 0.2s ease-out backwards; /* Add a slight delay */
}

.best-value-badge.hidden {
    display: none;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-45deg);
        transform-origin: top right;
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        transform-origin: top right;
    }
}

@media (max-width: 768px) {
    .receive-simulator-form {
        grid-template-columns: 1fr;
    }
    .receive-card-final-amount {
        font-size: 2rem;
    }
}



/* ======================================= */
/* 4. HOW-TO GUIDES (NOTEBOOK STYLE)       */
/* ======================================= */
#how-to-guides-section .section-heading {
    font-family: 'Bungee', sans-serif;
}

.blog-tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.partner-tabs-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    background-color: var(--surface-alt-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.partner-tab-link {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    color: var(--text-secondary-color);
    border: 2px solid transparent;
    transition: all var(--transition-speed-normal) var(--transition-type);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    background-color: transparent;
}

.partner-tab-link:hover,
.partner-tab-link:focus {
    background-color: var(--surface-color);
    color: var(--text-primary-color);
    outline: none;
}

.partner-tab-link.active {
    background-color: var(--primary-color);
    color: var(--primary-color-text);
    box-shadow: 0 4px 10px -2px rgba(67, 176, 42, 0.4);
}

.blog-content-area {
    margin-top: var(--spacing-lg);
}

.partner-panel {
    display: none;
}

.partner-panel.active {
    display: block;
}

/* THE NOTEBOOK CARD STYLE */
.blog-card {
    --notebook-bg: #fffdf9;
    --notebook-lines: #e8e8e8;
    --notebook-margin-line: #ffaaab;
    --notebook-text-color: #383838;
    background-color: var(--notebook-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    --line-height-notebook: 2.4rem;
    position: relative;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-xl) calc(var(--spacing-xl) + 25px);
    background-image: repeating-linear-gradient(var(--notebook-bg), var(--notebook-bg) calc(var(--line-height-notebook) - 1px), var(--notebook-lines) 1px);
    background-size: 100% var(--line-height-notebook);
}

[data-theme="dark"] .blog-card {
    --notebook-bg: #2a2823;
    --notebook-lines: #404040;
    --notebook-margin-line: #b15657;
    --notebook-text-color: #c7c7c7;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(var(--spacing-lg) + 15px);
    bottom: 0;
    width: 2px;
    background-color: var(--notebook-margin-line);
}

.blog-card h4,
.blog-card h5,
.blog-card h6,
.blog-card p,
.blog-card ul,
.blog-card ol,
.blog-card table {
    font-family: 'Kalam', cursive;
    color: var(--notebook-text-color);
    line-height: var(--line-height-notebook);
    margin-bottom: var(--line-height-notebook);
}

.blog-card h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-primary-color);
    font-size: 1.5rem;
}

.blog-card h5,
.blog-card h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
}

[data-theme="dark"] .blog-card h4 {
    color: var(--primary-color-text);
}

[data-theme="dark"] .blog-card h5,
[data-theme="dark"] .blog-card h6 {
    color: var(--strong-text-dark-theme);
}

.blog-card ul,
.blog-card ol {
    list-style: none;
    padding-left: 25px;
}

.blog-card li {
    padding-left: 10px;
    position: relative;
}

.blog-card li::before {
    content: '•';
    position: absolute;
    left: -15px;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--primary-color);
}

.register-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--line-height-notebook);
}

@media(min-width: 768px) {
    .register-methods {
        grid-template-columns: 1fr 1fr;
    }
}

.blog-card table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.blog-card th,
.blog-card td {
    border: 1px solid var(--notebook-lines);
    padding: var(--spacing-sm);
    text-align: left;
    vertical-align: middle;
    color: var(--notebook-text-color);
}

.blog-card thead {
    background-color: rgba(0, 0, 0, 0.05);
}

.blog-card th {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-primary-color);
}

[data-theme="dark"] .blog-card th {
    color: var(--primary-color-text);
}

/*
========================================================
   NEW SECTION: INTERACTIVE "CAN I USE IT HERE?" WORLD MAP
========================================================
*/

#interactive-map-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.map-container-wrapper {
    position: relative; /* Crucial for positioning the info panel inside */
    overflow: hidden; /* Keeps the info panel from overflowing the card's rounded corners */
}

#world-map {
    width: 100%;
    height: 500px;
    background-color: var(--surface-alt-color);
    border-radius: var(--border-radius-md);
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary-color);
    font-size: 1.2rem;
}

.map-placeholder .fa-spinner {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

/* Info Panel that slides in */
.map-info-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background-color: var(--surface-color);
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.map-info-panel:not(.hidden) {
    transform: translateX(0);
}

.map-info-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary-color);
    cursor: pointer;
    line-height: 1;
}

.map-info-header {
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

#map-info-flag {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

#map-info-country-name {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-primary-color);
}

.map-info-body {
    padding: var(--spacing-lg);
    flex-grow: 1;
    overflow-y: auto;
}

.map-info-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 var(--spacing-md) 0;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.services-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-weight: 500;
}

.services-list i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.services-list .fa-check-circle {
    color: var(--success-color);
}

.services-list .fa-times-circle {
    color: var(--error-color);
}

.map-info-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background-color: var(--surface-alt-color);
}

/* Responsiveness for the map panel */
@media (max-width: 992px) {
    .map-info-panel {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        transform: translateY(100%);
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    }

    .map-info-panel:not(.hidden) {
        transform: translateY(0);
    }
}



/* ======================================= */
/* 6. LIMITS & FEES TABLE                  */
/* ======================================= */
#global-limits-fees-table-section {
    background-color: var(--header-bg-color); /* Ensures a dark green background always */
    padding: var(--spacing-xxl) 0;
    margin-bottom: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
/* Ensures headings are white/light on the dark green background */
#global-limits-fees-table-section .section-heading,
#global-limits-fees-table-section .section-subtitle {
    color: var(--primary-color-text);
}
/* Provides a slightly different light color for the subtitle for nuance */
[data-theme="dark"] #global-limits-fees-table-section .section-subtitle {
    color: var(--year-header-color);
}
#global-limits-fees-table-section .table-responsive-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--header-border-color);
    border-radius: var(--border-radius-md);
    background: rgba(0, 0, 0, 0.1); /* Slightly darker base for the table area */
}
/* Ensures all table text is light and visible */
#global-limits-fees-table-section .styled-table th,
#global-limits-fees-table-section .styled-table td {
    color: #FFFFFF; /* Changed to pure white for better contrast */
    border-bottom: 1px solid var(--header-border-color);
    padding: var(--spacing-md);
}
/* Sets a solid, slightly darker header for the table */
#global-limits-fees-table-section .styled-table thead {
    background-color: rgba(0,0,0,0.3);
}
/* Explicitly sets table header text to be light and bold */
#global-limits-fees-table-section .styled-table th {
     color: #FFFFFF; /* Pure white for max contrast */
     font-weight: 700;
     text-transform: uppercase;
     font-size: 0.85rem;
}

/* CORRECTED: Zebra-striping with better contrast */
#global-limits-fees-table-section .styled-table tbody tr {
    background-color: rgba(0, 0, 0, 0.1); /* Base for all rows */
}
#global-limits-fees-table-section .styled-table tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.25); /* Darker row for contrast */
}

/* Add a hover effect for better user interaction */
#global-limits-fees-table-section .styled-table tbody tr:hover {
    background-color: rgba(67, 176, 42, 0.4); /* Use primary color with transparency on hover */
}

/* Sets the footnote text to a light color */
#global-limits-fees-table-section .table-footnote {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--year-header-color);
    text-align: center;
}

/* ======================================= */
/* 7. GLOBAL PAGE FAQ STYLES (ENHANCED)    */
/* These styles create a visually rich     */
/* list of questions and answers, ensuring */
/* no conflicts with global CSS.           */
/* ======================================= */

.global-accordion-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg); /* Adds space between each FAQ card */
}

.global-accordion-item {
    /* Reintroduce card styling for each item */
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-speed-fast), transform var(--transition-speed-fast);
}

.global-accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.global-accordion-header {
    margin: 0;
    position: relative; /* Needed for icon positioning */
    padding-left: 30px; /* Make space for the icon */
}

/* Add a question mark icon using a pseudo-element */
.global-accordion-header::before {
    content: '\f059'; /* Font Awesome question-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary-color);
}

.global-accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: default; /* Not clickable */
}

.global-accordion-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary-color);
    line-height: 1.4;
}

/* --- Content is always visible --- */
.global-accordion-content {
    /* No grid, max-height, or transition needed */
}

.global-accordion-content > p {
    font-family: var(--font-primary);
    color: var(--text-secondary-color);
    line-height: 1.7;
    margin: var(--spacing-md) 0 0 30px; /* Add top margin and align with question text */
    padding: 0;
    border-left: 3px solid var(--border-color-light); /* Add a subtle left border for visual separation */
    padding-left: var(--spacing-md);
}

/* --- Hide the original accordion icon --- */
.global-accordion-icon {
    display: none;
}


/* ======================================= */
/* 8. RESPONSIVENESS                       */
/* ======================================= */
@media (max-width: 768px) {
    .section-heading {
        font-size: 1.8rem;
    }

    .partner-tabs-nav {
        flex-direction: column;
    }

    .country-grid {
        grid-template-columns: 1fr;
    }

    .radio-group-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}