/* ============================================
   PROGRAMMATIC HOURLY SALARY PAGES
   ============================================ */

.hourly-page {
    padding: 36px 0 60px;
}

.hourly-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    margin-top: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .hourly-layout {
        grid-template-columns: 1fr;
    }
    .hourly-sidebar { display: none; }
}

/* ── H1 ── */
.hourly-main h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 24px;
}

/* ── Quick Answer Box ── */
.quick-answer {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 36px;
    text-align: center;
}

.quick-answer-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.quick-answer-value {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

.quick-answer-value span {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.85;
    display: block;
    margin-top: 4px;
}

.quick-answer p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 8px;
}

/* ── Breakdown Table ── */
.breakdown-section {
    margin-bottom: 36px;
}

.breakdown-section h2,
.how-calc-section h2,
.calc-embed-cta h2,
.faq-section h2,
.rate-nav-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ede9fe;
}

.breakdown-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
    border-radius: 14px;
    overflow: hidden;
}

.breakdown-table thead th {
    background: #4f46e5;
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-table tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.breakdown-table tbody tr:last-child td {
    border-bottom: none;
}

.highlight-row td {
    background: #f0f4ff;
    font-size: 1rem;
}

.parttime-row td {
    color: #6b7280;
    font-size: 0.9rem;
    background: #fafafa;
}

.takehome-row td {
    background: #f0fdf4;
    color: #15803d;
    font-weight: 500;
}

.table-note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 10px;
    padding: 0 4px;
    line-height: 1.6;
}

.table-note a {
    color: #4f46e5;
    text-decoration: none;
}

.table-note a:hover { text-decoration: underline; }

/* ── How the Calculation Works ── */
.how-calc-section {
    margin-bottom: 36px;
}

.how-calc-section p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1rem;
}

.formula-box {
    background: #f4f6f8;
    border-left: 5px solid #4f46e5;
    padding: 18px 22px;
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    color: #1a1a2e;
    margin: 20px 0;
}

.example-calc {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 26px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.example-calc h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
}

.example-calc ol {
    padding-left: 20px;
    margin: 0;
}

.example-calc li {
    padding: 5px 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Calculator CTA Embed ── */
.calc-embed-cta {
    margin-bottom: 36px;
}

.calc-embed-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: white;
}

.calc-embed-box h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.15);
}

.calc-embed-box p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.calc-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 700px) {
    .calc-cta-grid { grid-template-columns: 1fr; }
}

.calc-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.calc-cta-btn.primary {
    background: #4f46e5;
    color: white;
}

.calc-cta-btn.primary:hover { background: #4338ca; }

.calc-cta-btn.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.calc-cta-btn.secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* ── FAQ ── */
.hourly-faq {
    margin-bottom: 36px;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

/* ── Neighbour Rate Navigation ── */
.rate-nav-section {
    margin-bottom: 36px;
}

.rate-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.rate-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rate-nav-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 16px rgba(79,70,229,0.15);
}

.rate-nav-rate {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4f46e5;
}

.rate-nav-label {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 4px;
}

.all-rates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rate-pill {
    padding: 7px 14px;
    border-radius: 99px;
    background: white;
    border: 1px solid #e5e7eb;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rate-pill:hover, .rate-pill.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

/* ── Sidebar ── */
.hourly-sidebar {
    position: sticky;
    top: 90px;
}

.active-link {
    font-weight: 700;
    color: #4f46e5 !important;
}

/* ============================================
   HOURLY SALARY HUB PAGE
   ============================================ */

.hourly-hub-page {
    padding: 36px 0 60px;
}

.hourly-hub-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    margin-top: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .hourly-hub-layout { grid-template-columns: 1fr; }
    .hourly-hub-sidebar { display: none; }
}

.hourly-hub-main h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.hub-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 36px;
    background: #f8f9ff;
    border-left: 4px solid #4f46e5;
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
}

/* ── Interactive Calculator ── */
.hub-calc-section { margin-bottom: 40px; }

.hub-calc-section h2,
.hub-how-section h2,
.hub-pages-section h2,
.hub-link-list-section h2,
.hub-faq h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ede9fe;
}

.hub-calculator {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.hub-calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .hub-calc-inputs { grid-template-columns: 1fr; }
}

.hub-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.hub-input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: #1a1a2e;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.hub-input-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

#hub-calc-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

#hub-calc-btn:hover { opacity: 0.92; transform: translateY(-1px); }

.hub-result { margin-top: 4px; }
.hub-result.hidden { display: none; }

.hub-result-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .hub-result-grid { grid-template-columns: 1fr 1fr; }
}

.hub-result-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hub-result-card.primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: transparent;
}

.hub-result-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.hub-result-card.primary .hub-result-label { color: rgba(255,255,255,0.75); }

.hub-result-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a2e;
}

.hub-result-card.primary .hub-result-value { color: white; font-size: 1.6rem; }

.hub-breakdown-link { text-align: center; }

.hub-breakdown-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #ede9fe;
    color: #4f46e5;
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.hub-breakdown-btn:hover { background: #4f46e5; color: white; }

/* ── How it works ── */
.hub-how-section {
    margin-bottom: 40px;
}

.hub-how-section p {
    color: #374151;
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 14px;
}

.hub-examples-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.hub-example-pill {
    background: #ede9fe;
    color: #4f46e5;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.9rem;
}

/* ── Rates Card Grid ── */
.hub-pages-section { margin-bottom: 40px; }

.hub-pages-section > p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hub-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.hub-rate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 12px;
    text-decoration: none;
    transition: all 0.18s ease;
    gap: 4px;
}

.hub-rate-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 16px rgba(79,70,229,0.12);
    transform: translateY(-2px);
}

.hub-rate-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #4f46e5;
}

.hub-rate-annual {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.hub-rate-cta {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 2px;
}

/* ── SEO Link List ── */
.hub-link-list-section {
    margin-bottom: 40px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 26px;
    border: 1px solid #e5e7eb;
}

.hub-link-list {
    columns: 2;
    column-gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 580px) {
    .hub-link-list { columns: 1; }
}

.hub-link-list li {
    padding: 5px 0;
    font-size: 0.88rem;
    color: #6b7280;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
    break-inside: avoid;
}

.hub-link-list a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.hub-link-list a:hover { text-decoration: underline; }

/* ── Sidebar ── */
.hourly-hub-sidebar { position: sticky; top: 90px; }
