/* ================= WRAPPER ================= */
.crt-table-wrapper {
    overflow-x: auto;
    margin: 60px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(5, 45, 74, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(5, 45, 74, 0.06);
    transition: box-shadow 0.3s ease;
}

.crt-table-wrapper:hover {
    box-shadow: 0 8px 32px rgba(5, 45, 74, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ================= TABLE ================= */
.crt-rates-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
    font-size: 14px;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ================= HEADER ================= */
.crt-rates-table thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #052d4a 0%, #074166 100%);
    color: #ffffff;
    padding: 18px 16px;
    font-weight: 600;
    text-align: center;
    z-index: 2;
    font-size: 14px;
    letter-spacing: 0.3px;
    border-bottom: 3px solid #03a9e7;
}

.crt-rates-table thead th:first-child {
    border-top-left-radius: 8px;
}

.crt-rates-table thead th:last-child {
    border-top-right-radius: 8px;
}

.crt-rates-table thead th small {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
    font-weight: 400;
    line-height: 1.4;
}

/* ================= CELLS ================= */
.crt-rates-table td {
    padding: 16px 14px;
    text-align: center;
    border-bottom: 1px solid #f0f3f6;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.crt-rates-table tbody tr {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.crt-rates-table tbody tr:last-child td {
    border-bottom: none;
}

/* ================= FIRST COLUMN EMPHASIS ================= */
.crt-rates-table td:first-child,
.crt-rates-table th:first-child {
    text-align: left;
    font-weight: 700;
    color: #052d4a;
    font-size: 14.5px;
    padding-left: 20px;
}

.crt-rates-table th:first-child {
    color: #ffffff;
}

/* ================= HOVER EFFECTS ================= */
.crt-rates-table tbody tr:hover {
    background: linear-gradient(to right, #f8fafb 0%, #f5f8fa 100%);
}

.crt-rates-table tbody tr:hover td {
    color: #052d4a;
}

/* ================= BEST RATE HIGHLIGHT ================= */
.crt-best-rate {
    background: linear-gradient(135deg, rgba(3, 169, 231, 0.15) 0%, rgba(3, 169, 231, 0.08) 100%);
    font-weight: 700;
    color: #052d4a;
    position: relative;
    border-left: 3px solid #03a9e7;
    border-right: 3px solid #03a9e7;
}

.crt-best-rate::after {
    content: "★ Best";
    position: absolute;
    top: -10px;
    right: 8px;
    background: linear-gradient(135deg, #03a9e7 0%, #0291c9 100%);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(3, 169, 231, 0.3);
}

/* ================= CTA BUTTON ================= */
.crt-enquire-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #03a9e7;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(3, 169, 231, 0.25);
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
}

.crt-enquire-btn:hover {
    background: #028cc2;
    box-shadow: 0 3px 10px rgba(3, 169, 231, 0.3);
    color: #ffffff;
}

.crt-enquire-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(3, 169, 231, 0.25);
}

.crt-cta-row td {
    padding-top: 24px;
    padding-bottom: 20px;
    border-top: 2px solid #e8ecf0;
    background: linear-gradient(to bottom, transparent 0%, #fafbfc 100%);
}

/* ================= SECTION STYLING ================= */
.crt-section {
    margin-bottom: 90px;
}

.crt-section h2 {
    font-size: 28px;
    color: #052d4a;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.crt-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.crt-date {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 8px 0 36px;
    font-style: italic;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 768px) {
    .crt-table-wrapper {
        border-radius: 8px;
        margin: 40px 0;
    }
    
    .crt-rates-table {
        font-size: 13px;
    }
    
    .crt-rates-table thead th {
        padding: 14px 10px;
        font-size: 13px;
    }
    
    .crt-rates-table td {
        padding: 12px 8px;
    }
    
    .crt-section h2 {
        font-size: 24px;
    }
    
    .crt-enquire-btn {
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .crt-section h2 {
        font-size: 22px;
    }
    
    .crt-table-wrapper {
        margin: 30px -10px;
        border-radius: 6px;
    }
}

/* ================= ACCESSIBILITY ENHANCEMENTS ================= */
.crt-rates-table:focus-within {
    outline: 2px solid #03a9e7;
    outline-offset: 4px;
}

.crt-enquire-btn:focus {
    outline: 2px solid #03a9e7;
    outline-offset: 3px;
}

/* ================= ANIMATION FOR BEST RATE BADGE ================= */
@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.crt-best-rate::after {
    animation: pulse-subtle 2s ease-in-out infinite;
}

/* ================= LOADING STATE (Optional Enhancement) ================= */
.crt-table-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ================= PRINT STYLES ================= */
@media print {
    .crt-table-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .crt-enquire-btn {
        display: none;
    }
    
    .crt-rates-table tbody tr:hover {
        background: transparent;
    }
}