/* ============================================
   Content Pages - Shared Styles
   ============================================ */

/* Hero Section */
.content-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8faff 0%, #e8f0ff 100%);
    position: relative;
    overflow: hidden;
}

.content-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(35, 74, 218, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero Grid Layout */
.hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 50px;
    align-items: center;
}

.hero-grid.image-left {
    grid-template-columns: 1fr 1fr !important;
}

.hero-grid.image-left .hero-image-wrapper {
    order: -1;
}

.content-hero .hero-content {
    position: relative;
    z-index: 2;
}

.content-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.content-hero .hero-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Hero Image Container */
.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    background: #e8f0ff;
    max-height: 380px;
    height: 380px;
}

.content-hero .hero-image {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    display: block;
}

/* Search CTA Section */
.search-cta {
    padding: 60px 0;
    background: #234ada;
    text-align: center;
}

.search-cta h2 {
    color: white;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.search-cta .search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-cta .search-form input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
}

.search-cta .search-form button {
    background: #234ada;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-cta .search-form button:hover {
    background: #1a38b5;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    background: #f8faff;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(35, 74, 218, 0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #234ada;
    display: block;
    line-height: 1;
}

.stat-suffix {
    font-size: 28px;
    font-weight: 700;
    color: #234ada;
}

.stat-label {
    display: block;
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

/* Features Grid */
.features-section {
    padding: 80px 0;
    background: #f8faff;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(35, 74, 218, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #234ada 0%, #4a6cf7 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Process Flow */
.process-section {
    padding: 80px 0;
    background: white;
}

.process-flow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    flex: 1;
    max-width: 200px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 35px;
    font-size: 24px;
    color: #234ada;
    font-weight: bold;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #234ada 0%, #4a6cf7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.process-step h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: #666;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: #f8faff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #234ada 0%, #4a6cf7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.testimonial-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 5px;
}

.testimonial-info span {
    font-size: 14px;
    color: #888;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 25px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #234ada;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 15px;
}

/* Use Cases Grid */
.use-cases-section {
    padding: 80px 0;
    background: #f8faff;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.use-case-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #234ada 0%, #4a6cf7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.use-case-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.use-case-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Code Block */
.code-section {
    padding: 80px 0;
    background: #1a1a2e;
}

.code-section .section-title,
.code-section .section-subtitle {
    color: white;
}

.code-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.code-block-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #0d0d1a;
    border-radius: 12px;
    overflow: hidden;
}

.code-block-header {
    background: #252538;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-block-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-block-header span:nth-child(1) { background: #ff5f56; }
.code-block-header span:nth-child(2) { background: #ffbd2e; }
.code-block-header span:nth-child(3) { background: #27ca3f; }

.code-block {
    padding: 25px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    color: #e6e6e6;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre;
}

.code-block .keyword { color: #c792ea; }
.code-block .string { color: #c3e88d; }
.code-block .comment { color: #546e7a; }
.code-block .url { color: #82aaff; }

/* Accuracy Meter */
.accuracy-section {
    padding: 80px 0;
    background: white;
}

.accuracy-meter {
    max-width: 500px;
    margin: 40px auto 0;
}

.meter-bar {
    height: 30px;
    background: #e5e5e5;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #234ada 0%, #27ca3f 100%);
    border-radius: 15px;
    transition: width 1.5s ease;
}

.meter-label {
    text-align: center;
    margin-top: 15px;
    font-size: 36px;
    font-weight: 700;
    color: #234ada;
}

/* Coverage Map */
.coverage-section {
    padding: 80px 0;
    background: #f8faff;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.coverage-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.coverage-flag {
    font-size: 32px;
    margin-bottom: 10px;
}

.coverage-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.coverage-item span {
    font-size: 14px;
    color: #27ca3f;
}

/* Compliance Section */
.compliance-section {
    padding: 80px 0;
    background: white;
}

.compliance-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.compliance-badge {
    text-align: center;
    padding: 30px 40px;
    background: #f8faff;
    border-radius: 12px;
    min-width: 180px;
}

.compliance-badge i {
    font-size: 48px;
    color: #27ca3f;
    margin-bottom: 15px;
}

.compliance-badge h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.compliance-badge span {
    font-size: 14px;
    color: #666;
}

/* Data Sources */
.sources-section {
    padding: 80px 0;
    background: #f8faff;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.source-category {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.source-category h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-category h4 i {
    color: #234ada;
}

.source-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.source-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.source-list li:last-child {
    border-bottom: none;
}

.source-list li::before {
    content: '✓';
    color: #27ca3f;
    font-weight: bold;
}

/* API Endpoints */
.endpoints-section {
    padding: 80px 0;
    background: white;
}

.endpoint-card {
    background: #f8faff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.endpoint-method {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.endpoint-method.get { background: #27ca3f; }
.endpoint-method.post { background: #234ada; }
.endpoint-method.put { background: #ffbd2e; color: #1a1a2e; }
.endpoint-method.delete { background: #ff5f56; }

.endpoint-path {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 16px;
    color: #1a1a2e;
}

.endpoint-desc {
    font-size: 15px;
    color: #666;
}

/* Pricing Tiers */
.pricing-section {
    padding: 80px 0;
    background: #f8faff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.pricing-card.popular {
    border: 2px solid #234ada;
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #234ada;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h4 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: #234ada;
    margin-bottom: 5px;
}

.pricing-price span {
    font-size: 16px;
    color: #666;
}

.pricing-features {
    list-style: none;
    padding: 25px 0;
    margin: 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.pricing-features li {
    padding: 10px 0;
    font-size: 15px;
    color: #555;
}

.pricing-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 40px;
    background: #234ada;
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.pricing-btn:hover {
    background: #1a38b5;
    color: white;
    text-decoration: none;
}

/* Info Cards */
.info-section {
    padding: 80px 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-card {
    background: #f8faff;
    padding: 35px;
    border-radius: 16px;
    border-left: 4px solid #234ada;
}

.info-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #234ada 0%, #4a6cf7 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    padding: 18px 45px;
    background: white;
    color: #234ada;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #234ada;
    text-decoration: none;
}

/* Two Column Layout */
.two-col-section {
    padding: 80px 0;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-col-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.two-col-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.two-col-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #e8f0ff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-height: 400px;
}

.two-col-image img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
}

/* Content Cards for Guides */
.guide-section {
    padding: 80px 0;
}

.guide-steps {
    max-width: 800px;
    margin: 0 auto;
}

.guide-step {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.guide-step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #234ada 0%, #4a6cf7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.guide-step-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.guide-step-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* Tabs for API docs */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: #234ada;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #234ada;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .content-hero h1 {
        font-size: 32px;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .hero-grid.image-left .hero-image-wrapper {
        order: 0;
    }

    .hero-image-wrapper {
        max-width: 500px;
        max-height: 320px;
        height: 320px;
        margin: 0 auto;
    }

    .content-hero .hero-image {
        max-height: 320px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .testimonials-grid,
    .sources-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-card.popular {
        transform: none;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .content-hero {
        padding: 60px 0 40px;
    }

    .content-hero h1 {
        font-size: 28px;
    }

    .hero-image-wrapper {
        max-width: 100%;
        max-height: 260px;
        height: 260px;
    }

    .content-hero .hero-image {
        max-height: 260px;
    }

    .section-title {
        font-size: 28px;
    }

    .stats-grid,
    .features-grid,
    .testimonials-grid,
    .use-cases-grid,
    .sources-grid,
    .pricing-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .coverage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-cta .search-form {
        flex-direction: column;
        border-radius: 12px;
        padding: 15px;
    }

    .search-cta .search-form input,
    .search-cta .search-form button {
        width: 100%;
        border-radius: 8px;
    }

    .compliance-badges {
        gap: 20px;
    }

    .compliance-badge {
        min-width: 140px;
        padding: 20px;
    }

    .cta-section h2 {
        font-size: 28px;
    }
}
