/* Template: Gold Price Styles */

.template-gold-price-page {
    padding-bottom: 80px;
}

/* Hero Section (About Style Match) */
.gold-price-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 !important;
}

.gold-price-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.gold-price-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.gold-price-hero .vbbk-breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 13px;
}

.gold-price-hero .vbbk-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.gold-price-hero .vbbk-breadcrumb .sep {
    margin: 0 10px;
}

.gold-price-hero .page-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.gold-price-hero .hero-desc {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Table Section Styling */
.gold-table-section {
    padding: var(--section-padding);
}

.gold-update-status {
    background: #1b3664;
    color: #fff;
    padding: 20px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 12px 12px 0 0;
}


.gold-update-status .current-time {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -1px;
}

.gold-update-status .update-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.gold-update-status .update-info .label {
    font-size: 12px;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.gold-update-status .update-info .date {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.table-container {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid #ccc;
    border-top: none;
}


/* Custom styling for the shortcode output table */
.gold-table-section table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #ccc !important;
    margin: 0 !important;
}

/* Header */
.gold-table-section thead th,
.gold-table-section .table-header {
    background: #1b3664 !important;
    color: #fff !important;
    padding: 16px 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    border: 1px solid #fff !important;
    text-align: center !important;
}

.gold-table-section thead th:first-child {
    text-align: left !important;
}

/* Rows */
.gold-table-section table td {
    padding: 15px 20px !important;
    border: 1px solid #ccc !important;
    font-size: 15px !important;
    color: #333 !important;
    transition: all 0.2s ease;
    vertical-align: middle !important;
}

/* Merged Group Column (Khu vực) */
.gold-table-section table td.gold-group-cell {
    background: #FFF100 !important;
    /* Bright Yellow */
    color: #1b3664 !important;
    font-weight: 800 !important;
    text-align: center !important;
    vertical-align: middle !important;
    border: 1px solid #ccc !important;
}

/* Gold Type Column (Loại vàng) */
.gold-table-section table td.gold-name {
    background: #FFD200 !important;
    /* Slightly darker gold/yellow */
    color: #1b3664 !important;
    font-weight: 700 !important;
    text-align: left !important;
    border: 1px solid #ccc !important;
}

/* Standard columns (Prices - White Background) */
.gold-table-section table td:nth-child(3),
.gold-table-section table td:nth-child(4),
.gold-table-section table tr td.price {
    background: #fff !important;
    text-align: center !important;
    border: 1px solid #ccc !important;
}

/* Price columns - Phú Quý Style Colors */
.gold-table-section table td.buy-price {
    color: #a03030 !important;
    /* Redish Buy Price */
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px !important;
}

.gold-table-section table td.sell-price {
    color: #1b3664 !important;
    /* Navy Sell Price */
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px !important;
}






/* Highlighting variations */
.gold-table-section .price-up {
    color: #27ae60 !important;
}

.gold-table-section .price-down {
    color: #e74c3c !important;
}

.table-note {
    margin-top: 25px;
    font-size: 13px;
    color: #999;
    font-style: italic;
    text-align: center;
}

/* SEO Content Section */
.gold-seo-section {
    margin-top: 40px;
    padding: 60px 70px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
}

.gold-seo-section .section-title {
    margin-bottom: 30px;
    font-size: 32px;
    color: #132a4a;
    font-family: var(--font-heading);
    text-align: center;
}

.seo-text-content {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 991px) {
    .gold-price-hero .page-title {
        font-size: 38px;
    }

    .gold-seo-section {
        padding: 30px;
    }

    .gold-table-section table td,
    .gold-table-section thead th,
    .pnj-gold-table thead th,
    .pnj-gold-table tbody td {
        padding: 12px 15px !important;
    }
}

@media (max-width: 480px) {
    .template-gold-price-page {
        padding-bottom: 50px;
    }

    .gold-price-hero {
        min-height: 300px;
        height: auto;
        padding: 84px 0 52px !important;
    }

    .gold-table-section {
        padding: 20px 0;
    }

    .gold-update-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        border-radius: 10px 10px 0 0;
    }

    .gold-update-status .current-time {
        font-size: 30px;
    }

    .table-container {
        border-radius: 0 0 10px 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gold-table-section table,
    .pnj-gold-table {
        min-width: 100% !important;
        table-layout: fixed !important;
    }

    /* Column Widths */
    .gold-table-section table th:nth-child(1),
    .gold-table-section table td:nth-child(1) {
        width: 22%;
    }

    /* Khu vực */
    .gold-table-section table th:nth-child(2),
    .gold-table-section table td:nth-child(2) {
        width: 34%;
    }

    /* Loại vàng */
    .gold-table-section table th:nth-child(3),
    .gold-table-section table td:nth-child(3) {
        width: 22%;
    }

    /* Mua vào */
    .gold-table-section table th:nth-child(4),
    .gold-table-section table td:nth-child(4) {
        width: 22%;
    }

    /* Bán ra */

    .gold-table-section thead th {
        padding: 8px 4px !important;
        font-size: 9px !important;
    }

    .gold-table-section table td {
        padding: 8px 4px !important;
        font-size: 10px !important;
    }

    .gold-table-section table td.gold-name,
    .gold-table-section table td.gold-group-cell {
        font-size: 10px !important;
    }

    .pnj-gold-table tbody td.price {
        font-size: 13px !important;
    }





    .pnj-tabs-nav-wrapper {
        margin-bottom: 16px;
    }

    .pnj-tab-link {
        padding: 12px 14px;
        font-size: 12px;
    }
}


/* PNJ Gold Price Tabs UI */
.pnj-gold-price-tabs {
    margin-top: 30px;
}

.pnj-tabs-nav-wrapper {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
    position: sticky;
    top: 0;
    z-index: 10;
    /* Hiệu ứng mờ chỉ báo có thể cuộn ngang */
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.pnj-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    gap: 10px;
}

.pnj-tabs-nav::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.pnj-tab-link {
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pnj-tab-link:hover {
    color: var(--primary-gold);
}

.pnj-tab-link.active {
    color: #132a4a;
}

.pnj-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #b88e2f;
    /* Premium Gold */
    box-shadow: 0 2px 10px rgba(184, 142, 47, 0.4);
}


.pnj-tabs-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 10px;
}

.pnj-tab-pane {
    display: none;
}

.pnj-tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Table Inside Tabs */
.pnj-gold-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
}

.pnj-gold-table thead th {
    background: #1b3664 !important;
    padding: 15px 20px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #fff !important;
    font-weight: 700;
    border: 1px solid #fff;
    text-align: center !important;
}

.pnj-gold-table thead th:first-child {
    text-align: left !important;
}

.pnj-gold-table tbody td {
    padding: 15px 20px;
    border: 1px solid #ccc !important;
    font-size: 15px;
    color: #333;
    vertical-align: middle;
}

.pnj-gold-table tbody td:first-child {
    font-weight: 700;
    color: #1b3664;
}

.pnj-gold-table tbody td.price {
    text-align: center !important;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px !important;
}

.pnj-gold-table tbody td.buy-price {
    color: #a03030 !important;
}

.pnj-gold-table tbody td.sell-price {
    color: #1b3664 !important;
}




.pnj-api-note {
    margin-top: 30px;
    padding: 20px;
    background: #fdfdfd;
    border-left: 4px solid var(--primary-gold);
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    font-style: italic;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.pnj-gold-price-tabs .table-note {
    margin-top: 20px;
    font-size: 12px;
    color: #aaa;
    text-align: center;
}