:root {
    --pmex-red: #C4161C;
    --pmex-dark: #231F20;
    --pmex-gray: #666666;
}

body {
    font-family: "Inter", sans-serif;
    color: #333;
}

* {transition: all 0.3s ease-in-out;}

a {color: var(--pmex-dark); text-decoration: none;}
a:not(:has(i)):hover {
  color: var(--pmex-red);
}

a i {
  color: inherit; /* default */
}

a:hover  {
  color: var(--pmex-red);
}

.navbar {
    padding: 1rem 0;
    background: white;
}

.nav-search {
    color: var(--pmex-red);
    font-size: 1.2rem;
    margin-right: 1rem;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 16px;
    line-height: 134%;
    letter-spacing: -0.01em;
    color: #000000;
}

.breadcrumb {
    background: transparent;
    padding: 1.5rem 0 0.5rem;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

.breadcrumb .breadcrumb-item a {font-weight: 600;}

.page-header {
    margin: 1.5rem 0;
}

.page-header h1 {
    font-size: 3.25rem;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -2%;
    color: var(--pmex-dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--pmex-gray);
    font-size: 1rem;
}

.cta-card {
    background: linear-gradient(135deg, #C4161C 0%, #8B1528 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    height: 100%;
}

.cta-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-card .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.cta-card .btn:hover {
    background: white;
    color: var(--pmex-red);
}

/*.carousel-section {
    margin: 2rem auto;

}*/

.carousel-section {
    margin: 3rem auto;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 16px;
    /*gap: 1rem;*/
}

.broker-card {
    /* min-width: calc(33.333% - 1rem);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: transform 0.3s ease;
    background: #fff;*/
    flex: 0 0 calc(33.333% - 16px);
    border-radius: 10px;
    overflow: hidden;
}

    .broker-card img {
        /* width: 100%;
        height: 220px;
        object-fit: cover;*/
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
    }

    .broker-card:hover {
        transform: scale(1.03);
    }

@media (max-width: 1024px) {
    .broker-card {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .broker-card {
        flex: 0 0 100%;
    }
}

/*.broker-card {
    overflow: hidden;
    border: 3px solid #EDEDED;
    border-radius: 24px;
}

.broker-card img {
    width: 100%;
    height: auto;
}*/

/*.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}*/

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: all;
    transition: background 0.3s;
}

    .carousel-btn:hover {
        background-color: #f3f3f3;
    }

    .carousel-btn i {
        font-size: 1.5rem;
    }

/*@media (max-width: 768px) {
    .broker-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .broker-card {
        min-width: 100%;
    }
}*/

@media (max-width: 992px) {
    .market-table {
        overflow-x: auto;
        display: block;
    }

        .market-table table {
            min-width: 900px; 
        }
}


/*.carousel-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-btn:hover {
    background: var(--pmex-red);
    color: white;
    border-color: var(--pmex-red);
}*/

.market-watch-section {
   /* margin: 3rem auto;*/
}

.section-title {
    color: var(--pmex-red);
    font-size: 2.75rem;
    letter-spacing: -2%;
    line-height: 120%;
    font-weight: 600;
    margin-bottom: 2rem;
}

.market-table {
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    border-radius: 24px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
}

.market-table table {
    margin: 0;
    width: 100%;
    min-width: 1200px;
}

.market-table th {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--pmex-light);
    padding: 1rem 0.75rem;
    border: 0;
    box-shadow: none;
}
.market-table th:not(:first-child),
.market-table td:not(:first-child) {text-align: center;}
.market-table th i {margin-left: 10px;}

.market-table td {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
    vertical-align: middle;
}
.market-table tbody.category-items td:last-child {color: #999;}

.market-table tbody .category-row td {
    height: 40px;
    vertical-align: middle;
    background: #F5F5F5;
}

.market-table tbody.category-items tr {
    border-bottom: 1px solid #f0f0f0;
}
.market-table tbody.category-items td {color: #444;}

.market-table tbody tr:hover {
    background: #f8f9fa;
}

.category-row {
    background: #F5F5F5;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.category-row:hover {
    background: #e9ecef;
}

.category-row i {
    transition: transform 0.3s ease;
    display: inline-block;
    margin-right: 8px;
}

.category-row.collapsed i {
    transform: rotate(-90deg);
}

.category-items {
    display: table-row-group;
}

.category-items.hidden {
    display: none;
}

/*.commodity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    margin-right: 0.75rem;
}*/

.commodity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex; /* ✅ keeps icon inline (no line break) */
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    margin-right: 6px; /* spacing between icon and text */
    vertical-align: middle; /* aligns nicely with text */
}

.Symm {
    white-space: nowrap; /* prevents text from breaking into multiple lines */
}

.contract-text {
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
}

.highlighted-cell-red {background-color: #F8BFC120 !important;}

.icon-gold { background: #FFD700; }
.icon-silver { background: #C0C0C0; }
.icon-cotton { background: #1e3a5f; }
.icon-brent { background: #dc3545; }
.icon-copper { background: #2d5016; }
.icon-crude { background: #dc3545; }
.icon-gas { background: #FFD700; }
.icon-platinum { background: #2d5016; }
.icon-corn { background: #FFD700; }
.icon-soybean { background: #1e3a5f; }

.highlighted-price span {
    content: '';
    width: 100%;
    height: 90%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    padding: 8px 16px;
}
.price-positive span {background: #D6FFCC;}
.price-neutral span {background: #FFFACC;}
.price-negative span {background: #FFCCCC;}

.commodity-name {
    display: flex;
    align-items: center;
}

.commodity-code {
    font-size: 0.75rem;
    color: var(--pmex-gray);
}

footer {
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    font-size: 1rem;
    line-height: 150%;
    color: var(--pmex-dark);
}

.footer-section h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pmex-red);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--pmex-gray);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--pmex-red);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pmex-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--pmex-red);
}

.cert-badge {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
}

.footer-bottom {
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--pmex-dark);
    line-height: 150%;
}
.footer-bottom ul {
    display: flex;
    gap: 24px;
}
.footer-bottom ul li {
    list-style: none;
}
.footer-bottom ul li a {
    text-decoration: underline;
}
.footer-bottom ul li a:hover {text-decoration: none;}

.contact-info p,
.contact-info a {
    display: flex;
    align-items: flex-start;
}
.contact-info i {
    margin-right: 0.5rem;
    font-size: 26px;
    padding-top: 2px;
}
.contact-info p:not(:has(i)) {
    padding-left: 34px;
}
.contact-info i.sm {
    font-size: 14px;
    margin-left: 8px;
}

.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #231F20;
    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.12);
    border-radius: 100px;
}

.bottom-nav .nav {
    justify-content: center;
    gap: 0;
    margin: 0;
}

.bottom-nav .nav-link {
    color: #999;
    font-size: 0.875rem;
    padding: 1rem 1.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.bottom-nav .nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.bottom-nav .nav-link.active {
    color: white;
    border-bottom-color: var(--pmex-red);
}

.designed-by {
    font-size: 12px;
    line-height: 15px;
    color: #231F20;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 32px;
    gap: 8px;
    background: #EBEBEB;
    border-radius: 8px;
}

.bid-value {
    display: inline-block;
    background-color: yellow;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 600;
    transition: 0.3s;
}

.ask-value {
    display: inline-block;
    background-color: yellow;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 600;
    transition: 0.3s;
}

.bubblebid {
    background-color: #D6FFCC;
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-block;
}

.bubbleask {
    background-color: #D6FFCC;
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-block;
}


/* Mobile screen */
@media (max-width: 767px) {
    .copyright-block {
        flex-direction: column;
        gap: 12px;
    }
    .copyright-block ul {padding-left: 0;}
}

/*@media (min-width: 576px){
    .container, .container-sm {
        max-width: 545px !important;
    }
}*/
