/* PDFNano - Optimized Add Page Number Styles */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --text: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
    --success: #10b981;
    --success-hover: #0c8a67;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Container & Layout */
.containert {
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header-t {
    padding: 40px 24px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.header-t h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 12px;
    color: var(--primary);
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.2;
}

.header-t p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

.main-content { padding: 32px; }

/* FIXED: Centered Upload Area */
#uploadArea {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
    margin-bottom: 24px;
    cursor: pointer;
}

#uploadArea:hover {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.upload-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.upload-text {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 600;
    margin: 0 0 8px 0;
}

#uploadArea p {
    margin: 0;
    color: var(--text-light);
}

/* Options & Form Controls */
#options {
    display: none;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.option-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

/* Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); }
.btn-success { background-color: var(--success); color: white; }

/* --- Content Sections & Grid Logic --- */
.content-section-wrapper { 
    padding: 80px 20px; 
    background-color: #ffffff;
}

.more-value-section { 
    padding: 80px 20px; 
    background-color: #f8fafc; /* Light blue-grey background to separate sections */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.content-container { 
    max-width: 1100px; 
    margin: 0 auto; 
}

.section-title { 
    font-family: 'Space Grotesk', sans-serif; 
    text-align: center; 
    font-size: 2.5rem; 
    color: #1a237e; 
    margin-bottom: 50px; 
    line-height: 1.2;
}

/* --- The 3-Column Grid (How it Works / Why PDFNano) --- */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.info-card { 
    background: #ffffff; 
    padding: 40px 30px; 
    border-radius: 20px; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); 
    border: 1px solid #f1f5f9; 
    transition: all 0.3s ease;
}

.info-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.info-card-icon { 
    font-size: 2.5rem; 
    color: var(--primary); 
    width: 80px; 
    height: 80px; 
    margin: 0 auto 25px; 
    border-radius: 50%; 
    background-color: rgba(79, 70, 229, 0.08); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.info-card h3 { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: #1e293b;
}

.info-card p { 
    color: #64748b; 
    line-height: 1.7; 
    font-size: 1.05rem;
}

/* --- Why Use List (Checkmark Layout) --- */
.why-use-list { 
    list-style: none; 
    padding: 0; 
    margin-top: 20px;
}

.why-use-list li { 
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 30px; 
    text-align: left;
}

.why-use-list .fas { 
    font-size: 1.4rem; 
    color: #10b981; 
    background: rgba(16, 185, 129, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin-right: 20px; 
}

.why-use-list h4 { 
    font-size: 1.3rem; 
    color: #1e293b; 
    margin: 0 0 5px 0;
}

/* --- FAQ Section (Clean Accordion) --- */
.faq-item { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    margin-bottom: 15px; 
    transition: border-color 0.3s;
}

.faq-item:hover { border-color: var(--primary); }

.faq-question { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 24px; 
    cursor: pointer; 
    font-size: 1.15rem; 
    font-weight: 600; 
    color: #1e293b;
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.3s ease-in-out; 
    background: #f8fafc;
}

.faq-answer p { 
    padding: 0 24px 24px; 
    margin: 0; 
    color: #475569; 
    line-height: 1.8;
}

.faq-item.active .faq-answer { 
    max-height: 500px; /* Expands smoothly */
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .info-card { padding: 30px 20px; }
    .why-use-list li { flex-direction: column; align-items: center; text-align: center; }
    .why-use-list .fas { margin-right: 0; margin-bottom: 15px; }
}