/* ==========================================================================
   Pages CSS — Content styles for sub-pages (SaaS, Fintech, Agencies, etc.)
   This file contains ONLY page content styles.
   Header/Footer/Body base styles live in header-footer.css.
   ========================================================================== */

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #002970; /* Paytm Deep Blue */
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: 3rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; color: #005af2; }

p {
    color: #4a5568; /* Readable dark grey */
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 75ch;
}

a { color: #00baf2; text-decoration: none; font-weight: 500; }
a:hover { color: #002970; }

/* Quotable Definition Blocks */
.definition-block {
    background: #f8fafc;
    border-left: 4px solid #00baf2;
    padding: 2rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 2rem 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: #002970;
    border-top: 1px solid #edf2f7;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

/* Structured Lists */
ul, ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
    color: #4a5568;
}

li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Hero Section for Sub-pages (Matching Paytm theme) */
.hero, .blog-hero {
    background: linear-gradient(135deg, #f0f7ff, #e0f2fe);
    color: #002970;
    padding: 140px 0 100px;
    text-align: center;
    border-radius: 0;
    margin-top: 0;
    border-bottom: 1px solid #edf2f7;
}

.hero h1, .blog-hero h1 {
    color: #002970;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: none;
    font-weight: 800;
}

.hero p, .blog-hero p {
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 20px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 41, 112, 0.04);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 41, 112, 0.08);
    border-color: #00baf2;
}

.card h3 {
    margin-top: 0;
    color: #002970;
}

/* Buttons */
.btn {
    display: inline-flex;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 41, 112, 0.2);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 41, 112, 0.3);
}

/* Contact Form Section */
.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    max-width: 600px;
    margin: 60px auto;
    box-shadow: 0 10px 30px rgba(0, 41, 112, 0.04);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #1f2937;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 186, 242, 0.1);
}

/* Page Content Container */
main.container {
    padding-top: 0;
    padding-bottom: 80px;
}

main.container > section:first-child {
    padding-top: 140px;
}

/* Premium Blog Reading Card Layout */
.blog-content {
    max-width: 800px;
    margin: -60px auto 4rem;
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 41, 112, 0.06);
    border: 1px solid #edf2f7;
    position: relative;
    z-index: 10;
}

.blog-content h2 {
    color: #002970;
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #edf2f7;
}

.blog-content h3 {
    color: #005af2;
    margin-top: 2rem;
}

.blog-content p {
    max-width: 100%;
    line-height: 1.8;
    color: #2d3748;
}

.blog-content ul, .blog-content ol {
    max-width: 100%;
    color: #2d3748;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    color: #718096;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-meta i {
    color: #00baf2;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 100px 1.5rem 40px;
    }

    .blog-hero {
        padding: 100px 1.5rem 40px;
    }

    .blog-content {
        padding: 2rem 1.5rem 3rem;
        margin: -40px 1rem 3rem;
    }
}
