/* Template: Silver Price Styles */

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

/* Hero Section (About Style Match) */
.silver-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;
}

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

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

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

.silver-price-hero .vbbk-breadcrumb a { color: inherit; text-decoration: none; }
.silver-price-hero .vbbk-breadcrumb .sep { margin: 0 10px; }

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

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

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

.silver-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;
}

.silver-update-status .current-time {
    font-size: 48px;
    font-weight: 300; /* Thin modern look */
    line-height: 1;
    letter-spacing: -1px;
}

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

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

.silver-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 */
.silver-table-section table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #ccc !important;
    margin: 0 !important;
}

/* Header */
.silver-table-section thead th,
.silver-table-section .table-header {
    background: #1b3664 !important; /* Deep Navy */
    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;
}

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

/* Rows */
.silver-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;
}

/* Group Headers (Brand Titles) - Usually rows with colspan or distinct bold labels */
.silver-table-section table tr:has(td[colspan]),
.silver-table-section table tr td[colspan] {
    background: #e6eaf0 !important;
    color: #1b3664 !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
}

/* Product names col */
.silver-table-section table td:first-child {
    font-weight: 700;
    color: #1b3664;
    text-align: left;
}

/* Standard columns centering */
.silver-table-section table td:nth-child(2),
.silver-table-section table td:nth-child(3),
.silver-table-section table td:nth-child(4) {
    text-align: center !important;
}

/* Price columns - Phú Quý Style Colors */
.silver-table-section table td:nth-child(3) { 
    color: #a03030 !important; /* Redish Buy Price */
    font-weight: 800 !important;
    font-size: 18px !important;
} 
.silver-table-section table td:nth-child(4) { 
    color: #1b3664 !important; /* Navy Sell Price */
    font-weight: 800 !important;
    font-size: 18px !important;
}

.silver-table-section table tr:hover td {
    background: #f8f9fb !important;
}


/* Highlighting variations */
.silver-table-section .price-up { color: #27ae60 !important; }
.silver-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 */
.silver-seo-section {
    margin-top: 40px;
    padding: 60px 70px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.silver-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) {
    .silver-price-hero .page-title { font-size: 38px; }
    .silver-seo-section { padding: 30px; }
    
    .silver-table-section table td, 
    .silver-table-section thead th {
        padding: 12px 15px !important;
    }
}

@media (max-width: 767px) {
    .silver-update-status {
        padding: 16px 18px;
    }

    .silver-update-status .current-time {
        font-size: 36px;
    }

    .silver-update-status .update-info .date {
        font-size: 20px;
    }

    .silver-seo-section {
        margin-top: 28px;
        padding: 22px 18px;
        border-radius: 14px;
    }

    .silver-seo-section .section-title {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .seo-text-content {
        font-size: 15px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .silver-table-section {
        padding: 20px 0;
    }

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

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

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

    .silver-table-section table {
        min-width: 100%; /* Match screen width where possible */
        table-layout: fixed; /* Force fixed layout for control */
    }

    /* Column Width Allocation */
    .silver-table-section table th:nth-child(1),
    .silver-table-section table td:nth-child(1) { width: 38%; text-align: left !important; } /* Sản phẩm */
    .silver-table-section table th:nth-child(2),
    .silver-table-section table td:nth-child(2) { width: 14%; } /* Đơn vị */
    .silver-table-section table th:nth-child(3),
    .silver-table-section table td:nth-child(3) { width: 24%; } /* Mua vào */
    .silver-table-section table th:nth-child(4),
    .silver-table-section table td:nth-child(4) { width: 24%; } /* Bán ra */

    .silver-table-section thead th,
    .silver-table-section .table-header {
        padding: 8px 6px !important;
        font-size: 10px !important;
        letter-spacing: 0;
        line-height: 1.2;
    }

    .silver-table-section table td {
        padding: 10px 6px !important;
        font-size: 11px !important;
        line-height: 1.3;
        white-space: normal !important; /* Allow wrapping as seen in Phú Quý mobile */
        word-break: break-word;
    }

    .silver-table-section table td:first-child {
        font-size: 11px !important;
        font-weight: 700;
    }

    .silver-table-section table td:nth-child(3),
    .silver-table-section table td:nth-child(4) {
        font-size: 13px !important;
        padding: 10px 4px !important;
    }

    /* Subheaders on mobile */
    .silver-table-section table tr td[colspan] {
        font-size: 11px !important;
        padding: 8px 10px !important;
    }

    .table-note {
        padding: 0 10px;
        font-size: 11px;
        text-align: left;
    }
}

