/*
Theme Name: Punjab e-Challan
Theme URI: https://punjabechallan.com
Author: Muhammad Hilal
Description: A clean, modern WordPress theme for Punjab e-Challan guide website.
Version: 1.0
Text Domain: punjab-echallan
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --primary: #28a745;
    --secondary: #20c997;
    --dark: #1e293b;
    --light: #f8f9fa;
    --gray: #6c757d;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

.navbar { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.navbar-brand { font-weight: 700; font-size: 1.6rem; }

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 70%, #e0f7e9 100%);
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='grain' width='100' height='100'%3E%3Ccircle cx='30' cy='30' r='2' fill='white' opacity='0.1'/%3E%3Ccircle cx='70' cy='70' r='1.5' fill='white' opacity='0.08'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grain)'/%3E%3C/svg%3E");
    opacity: 0.3;
}
.hero h1 { font-size: 3.8rem; font-weight: 700; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.pak-flag { height: 80px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }

.challan-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.5);
    max-width: 900px;
    margin: 0 auto;
}
.challan-box h3 { color: var(--dark); font-weight: 600; font-size: 1.8rem; text-align: center; }

.form-label { font-weight: 600; color: var(--dark); margin-bottom: 8px; font-size: 1.05rem; }
.form-control, .form-select {
    border-radius: 14px;
    border: 2px solid #e0e0e0;
    padding: 16px 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.privacy-note { font-size: 0.98rem; color: #495057; font-weight: 500; text-align: center; margin-top: 20px; }

.disclaimer {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 18px;
    padding: 40px;
    border-left: 8px solid #ffc107;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
}

.service-card {
    border-radius: 20px;
    transition: all 0.4s ease;
    background: white;
    height: 100%;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}
.service-icon-big {
    font-size: 4.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

section { padding: 100px 0; }
.how-to { background: var(--light); }

footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #cbd5e1;
}
footer a { color: #94a3b8; text-decoration: none; transition: color 0.3s; }
footer a:hover { color: #ffffff; }

/* Responsive */
@media (max-width: 1200px) { .hero h1 { font-size: 3.2rem; } }
@media (max-width: 992px) { .hero h1 { font-size: 2.8rem; } .hero { padding: 120px 0 80px; } .challan-box { padding: 40px 30px; } }
@media (max-width: 768px) {
    .hero h1 { font-size: 2.4rem; }
    .hero .lead { font-size: 1.3rem; }
    .challan-box { padding: 35px 25px; margin: 20px; border-radius: 20px; }
    .pak-flag { height: 60px; }
    section { padding: 80px 0; }
}
@media (max-width: 576px) {
    .hero h1 { font-size: 2.1rem; }
    .challan-box h3 { font-size: 1.6rem; }
}


/* Archive Header */
.archive-header {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
    border-radius: 16px;
    margin-bottom: 40px;
}

.archive-header h1 {
    color: var(--dark, #1e293b);
}

/* Blog Cards (same as homepage) */
.blog-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
}

.blog-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.5rem;
}

/* Pagination */
.pagination .page-numbers {
    margin: 0 5px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #f8f9fa;
    color: var(--primary);
    border: 1px solid #dee2e6;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Modern Author Box */
.author-box {
    background: linear-gradient(135deg, #f8fdf9 0%, #e8f5e9 100%);
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.author-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(40, 167, 69, 0.2) !important;
}

/* Avatar */
.author-box img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid white;
    transition: transform 0.4s ease;
}


.author-box:hover img {
    transform: scale(1.1);
}

/* Social Buttons */
.author-social .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.author-social .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.25);
}

.author-social .btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.author-social .btn-outline-success:hover {
    background: #28a745;
    color: white;
}


/* Related Articles - Image + Title Only */
.related-posts .related-card {
    transition: all 0.4s ease;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.related-posts .related-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(40, 167, 69, 0.2) !important;
}

.related-posts .related-card img {
    transition: transform 0.5s ease;
}

.related-posts .related-card:hover img {
    transform: scale(1.08);
}

.related-posts .card-body {
    background: white;
    padding: 1.5rem 1rem !important;
}

.related-posts h5 {
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 0;
    color: #1e293b;
}

/* 404 Page Styling */
.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fdf9 0%, #e8f5e9 100%);
}

.error-404 .display-1 {
    font-size: 8rem;
    line-height: 1;
    text-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
}

.error-404 h2 {
    font-size: 2.5rem;
    color: var(--dark, #1e293b);
}

.error-404 .lead {
    font-size: 1.2rem;
}

.error-404 .btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.error-404 .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.3);
}

.error-404 .fa-car-crash {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Search Form on 404 */
.search-404 .search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-404 .search-field {
    border-radius: 50px 0 0 50px;
    padding: 1rem 1.5rem;
    border: 2px solid #28a745;
}

.search-404 .search-submit {
    border-radius: 0 50px 50px 0;
    background: #28a745;
    padding: 1rem 2rem;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .error-404 .display-1 {
        font-size: 6rem;
    }
    
    .error-404 h2 {
        font-size: 2rem;
    }
    
    .error-404 .btn {
        width: 100%;
    }
}

/* Ultimate Guide Section - Mobile-First & Clear */
.ultimate-guide {
    background: #f8fdf9;
}

.guide-master-card {
    box-shadow: 0 10px 30px rgba(40,167,69,0.15);
}

.icon-hero {
    width: 80px;
    height: 80px;
}

.guide-body h3 {
    font-size: 1.3rem;
}

.payment-card,
.benefit-card {
    min-height: 110px;
    transition: transform 0.3s ease;
}

.payment-card:hover,
.benefit-card:hover {
    transform: translateY(-5px);
}

/* Pro Tip Card - Fixed & Clear on All Devices */
.pro-tip-card {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.pro-tip-card i,
.pro-tip-card h4,
.pro-tip-card p,
.pro-tip-card strong {
    color: white !important;
}

/* Mobile Adjustments - Clear & Spacious */
@media (max-width: 767px) {
    .ultimate-guide {
        padding: 2rem 0 !important;
    }
    
    .guide-master-card {
        margin: 0 1rem;
        border-radius: 16px !important;
    }
    
    .icon-hero {
        width: 70px !important;
        height: 70px !important;
    }
    
    .icon-hero i {
        font-size: 2.2rem !important;
    }
    
    .guide-body h3 {
        font-size: 1.2rem !important;
    }
    
    .guide-body p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .payment-card {
        min-height: 100px !important;
        padding: 1rem !important;
    }
    
    .payment-card i {
        font-size: 2.2rem !important;
    }
    
    .pro-tip-card {
        padding: 2rem 1.5rem !important;
        margin: 1rem !important;
    }
    
    .pro-tip-card i {
        font-size: 2.5rem !important;
    }
    
    .pro-tip-card h4 {
        font-size: 1.3rem !important;
    }
    
    .pro-tip-card p {
        font-size: 1rem !important;
    }
}