/* 
 * SalaryInHand Pro - Theme CSS (Complete SaaS Redesign)
 */

:root {
    --theme-primary: #2563EB;
    --theme-primary-hover: #1D4ED8;
    --theme-accent: #10B981;
    --theme-secondary: #0F172A;
    --theme-bg: #F8FAFC;
    --theme-surface: #FFFFFF;
    --theme-text: #334155;
    --theme-text-light: #64748B;
    --theme-border: #E5E7EB;
    
    /* Radius Scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows Scale */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);

    /* Spacing Scale */
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;

    /* Responsive Spacing System */
    --section-pad: var(--space-96);
    --container-pad: 60px;
    
    /* Typography Scale */
    --fs-h1: 56px;
    --fs-h2: 40px;
    --fs-h3: 28px;
    --fs-body: 18px;
    --fs-small: 14px;
}

@media (max-width: 992px) {
    :root {
        --section-pad: var(--space-64);
        --container-pad: 40px;
        --fs-h1: 44px;
        --fs-h2: 34px;
        --fs-h3: 24px;
    }
}

@media (max-width: 576px) {
    :root {
        --section-pad: var(--space-48);
        --container-pad: 24px;
        --fs-h1: 32px;
        --fs-h2: 28px;
        --fs-h3: 22px;
        --fs-body: 17px;
    }
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--theme-bg);
    color: var(--theme-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: var(--fs-body);
}

/* Typography Classes */
h1, .fs-h1 {
    font-size: var(--fs-h1) !important;
    font-weight: 800;
    line-height: 1.15;
    color: var(--theme-secondary);
    margin: 0 0 var(--space-24) 0;
    letter-spacing: -0.02em;
}

h2, .fs-h2 {
    font-size: var(--fs-h2) !important;
    font-weight: 700;
    line-height: 1.25;
    color: var(--theme-secondary);
    margin: 0 0 var(--space-24) 0;
    letter-spacing: -0.015em;
}

h3, .fs-h3 {
    font-size: var(--fs-h3) !important;
    font-weight: 700;
    line-height: 1.35;
    color: var(--theme-secondary);
    margin: 0 0 var(--space-24) 0;
}

p {
    font-size: var(--fs-body);
    color: var(--theme-text-light);
    margin: 0 0 var(--space-24) 0;
}

a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--theme-primary-hover);
}

/* Structural elements */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-32);
}

.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-7 { grid-column: span 7; }
.col-span-6 { grid-column: span 6; }
.col-span-5 { grid-column: span 5; }
.col-span-4 { grid-column: span 4; }
.col-span-3 { grid-column: span 3; }

@media (max-width: 992px) {
    .grid-12 {
        grid-template-columns: 1fr;
        gap: var(--space-24);
    }
    .col-span-12, .col-span-8, .col-span-7, .col-span-6, .col-span-5, .col-span-4, .col-span-3 {
        grid-column: span 12 !important;
    }
}

/* Spacing and Alternating Background Sections */
.sih-section {
    padding: var(--section-pad) 0;
    box-sizing: border-box;
}

.sih-section.bg-white {
    background-color: var(--theme-surface);
}

.sih-section.bg-slate {
    background-color: var(--theme-bg);
    border-top: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
}

/* Center Content Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-48) auto;
}

.section-title {
    margin-bottom: 12px;
}

.section-subtitle {
    margin-bottom: 0;
    font-size: var(--fs-body);
    color: var(--theme-text-light);
}

/* Header Component */
.site-header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--theme-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-24) var(--container-pad);
    max-width: 1400px;
    margin: 0 auto;
}

.site-title {
    margin: 0;
    font-size: 24px !important;
    font-weight: 800;
}

.site-title a {
    color: var(--theme-secondary);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-32);
}

.main-navigation a {
    color: var(--theme-text);
    font-weight: 600;
    font-size: 16px;
}

.main-navigation a:hover {
    color: var(--theme-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions button, .menu-toggle {
    background: none;
    border: none;
    color: var(--theme-text);
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.header-actions button:hover, .menu-toggle:hover {
    background-color: var(--theme-bg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 48px;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--theme-primary);
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--theme-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--theme-border);
    color: var(--theme-text) !important;
}

.btn-outline:hover {
    border-color: var(--theme-secondary);
    background-color: var(--theme-bg);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    display: flex;
}

/* Hero Section Badges */
.hero-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: var(--space-32) 0;
}

@media (max-width: 480px) {
    .hero-trust-badges {
        grid-template-columns: 1fr;
    }
}

.trust-badge-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon {
    font-size: 16px;
    color: var(--theme-accent);
}

.badge-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--theme-secondary);
}

/* Trust Badges Strip Section */
.trust-strip-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    padding: var(--space-24) var(--space-32);
    box-shadow: var(--shadow-sm);
}

.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-strip-icon {
    font-size: 20px;
    background: #EFF6FF;
    color: var(--theme-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.trust-strip-text {
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--theme-secondary);
}

/* Financial Toolkit Grid Cards */
.grid-cards {
    display: grid;
    gap: var(--space-32);
}

.grid-cards.grid-15 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .grid-cards.grid-15 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-cards.grid-15 {
        grid-template-columns: 1fr;
    }
}

.fintech-tool-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    height: 100%;
}

.fintech-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--theme-primary);
}

.tool-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--theme-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: var(--space-24);
}

.fintech-tool-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px !important;
    font-weight: 700;
    color: var(--theme-secondary);
}

.fintech-tool-card p {
    font-size: var(--fs-small);
    color: var(--theme-text-light);
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.tool-arrow-link {
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-arrow-link span {
    transition: transform 0.2s;
}

.fintech-tool-card:hover .tool-arrow-link span {
    transform: translateX(4px);
}

/* Popular Salary Searches */
.searches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-32);
}

@media (max-width: 992px) {
    .searches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.salary-search-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-xl);
    padding: var(--space-32);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.salary-search-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.salary-search-card h3 {
    margin: 0 0 20px 0;
    font-size: 22px !important;
    font-weight: 800;
    color: var(--theme-secondary);
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 12px;
}

.search-card-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.search-card-metric span {
    color: var(--theme-text-light);
    font-weight: 500;
}

.search-card-metric strong {
    color: var(--theme-secondary);
    font-weight: 700;
}

.search-card-metric.highlight strong {
    color: var(--theme-accent);
}

.search-card-action {
    margin-top: 16px;
}

/* Connected Horizontal Timeline */
.timeline-container {
    overflow-x: auto;
    padding: var(--space-24) 0;
    margin-top: var(--space-48);
    -webkit-overflow-scrolling: touch;
}

.timeline-row {
    display: flex;
    align-items: center;
    min-width: max-content;
    padding: var(--space-24);
}

.timeline-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    width: 260px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-role {
    font-weight: 700;
    font-size: 13px;
    color: var(--theme-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-jump {
    background: #EFF6FF;
    color: var(--theme-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.timeline-salaries {
    display: flex;
    align-items: center;
    gap: 12px;
}

.salary-start {
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-text-light);
}

.salary-arrow {
    color: var(--theme-border);
    font-size: 18px;
}

.salary-target {
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-primary);
}

.timeline-connector {
    width: var(--space-64);
    height: 2px;
    background: var(--theme-text-light);
    flex-shrink: 0;
    position: relative;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--theme-text-light);
    border-right: 2px solid var(--theme-text-light);
    transform: rotate(45deg);
}

/* Salary By City Cards */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-32);
}

@media (max-width: 992px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.city-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-xl);
    padding: var(--space-32);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.city-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--space-24);
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: var(--space-24);
}

.city-icon {
    font-size: 28px;
    background: #F0FDF4;
    color: var(--theme-accent);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.city-card-header h3 {
    margin: 0;
    font-size: 22px !important;
    font-weight: 800;
}

.city-guides-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-24) 0;
    flex-grow: 1;
}

.city-guides-list li {
    margin-bottom: 12px;
}

.city-guides-list a {
    color: var(--theme-text);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-guides-list a::before {
    content: '➔';
    color: var(--theme-primary);
    font-size: 12px;
}

.city-guides-list a:hover {
    color: var(--theme-primary);
}

/* Compare Cards Grid */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-32);
}

@media (max-width: 992px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }
}

.compare-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-xl);
    padding: var(--space-32);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.compare-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.compare-vs-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    text-align: center;
    margin-bottom: var(--space-24);
}

.compare-salary-box {
    background: var(--theme-bg);
    padding: 20px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--theme-border);
}

.compare-salary-box.highlight {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
}

.compare-box-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-text-light);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.compare-box-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--theme-secondary);
}

.compare-vs-badge {
    background: var(--theme-border);
    color: var(--theme-secondary);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
}

.compare-diff-box {
    text-align: center;
    border-top: 1px dashed var(--theme-border);
    padding-top: var(--space-24);
    margin-bottom: var(--space-24);
}

.compare-diff-label {
    font-size: 13px;
    color: var(--theme-text-light);
    display: block;
    margin-bottom: 4px;
}

.compare-diff-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-accent);
}

/* Latest Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-32);
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.article-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
    overflow: hidden;
    background: var(--theme-border);
}

.article-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-img-wrapper img {
    transform: scale(1.05);
}

.article-cat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--theme-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.article-body {
    padding: var(--space-24);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--theme-text-light);
    margin-bottom: 12px;
}

.article-body h3 {
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.article-body h3 a {
    color: var(--theme-secondary);
}

.article-body h3 a:hover {
    color: var(--theme-primary);
}

.article-excerpt {
    font-size: var(--fs-small);
    color: var(--theme-text-light);
    margin: 0;
    flex-grow: 1;
}

/* FAQ accordion native details/summary */
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: var(--theme-primary);
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--theme-text-light);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px 24px;
    font-size: 15px;
    color: var(--theme-text-light);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
    border-top-color: var(--theme-border);
}

/* Newsletter Premium Dark style */
.newsletter-card {
    background: var(--theme-secondary);
    background-image: radial-gradient(circle at top right, rgba(37,99,235,0.15), transparent 50%);
    border-radius: var(--radius-xl);
    padding: var(--space-64) var(--space-48);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    color: #FFFFFF;
    box-sizing: border-box;
}

.newsletter-card h2 {
    color: #FFFFFF !important;
    margin-bottom: 8px;
}

.newsletter-card p {
    color: #94A3B8;
    margin-bottom: var(--space-32);
}

.newsletter-form-wrapper {
    display: flex;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .newsletter-form-wrapper {
        flex-direction: column;
        gap: 12px;
    }
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #FFFFFF;
    border-radius: var(--radius-md);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    height: 48px;
}

.newsletter-input:focus {
    border-color: var(--theme-primary);
}

/* Footer Section */
.site-footer {
    background: #0B1120;
    color: #FFFFFF;
    padding: var(--space-96) 0 var(--space-48) 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-48);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-widget-column h3 {
    color: #FFFFFF !important;
    margin-top: 0;
    font-size: 16px !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-24);
}

.footer-widget-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-column li {
    margin-bottom: 12px;
}

.footer-widget-column a {
    color: #94A3B8;
    font-size: 15px;
    font-weight: 500;
}

.footer-widget-column a:hover {
    color: #FFFFFF;
}

.footer-widget-column p {
    color: #94A3B8;
    font-size: 15px;
    line-height: 1.6;
}

.site-info {
    text-align: center;
    border-top: 1px solid #1E293B;
    margin-top: var(--space-64);
    padding-top: var(--space-32);
    color: #64748B;
    font-size: 14px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--theme-primary);
    color: #FFF;
    padding: 10px;
    z-index: 10000;
}
.skip-link:focus {
    top: 0;
}
