/*
Theme Name: QP Pro Elite
Theme URI: https://questionpaperz.in/
Author: Question Paperz Team
Description: QP Pro Elite is a high-performance WordPress theme optimized for 90+ speed score and 4x AdSense earnings.
Version: 3.8.7
Text Domain: qp-pro-elite
*/

/* --- 1. CORE VARIABLES --- */
:root {
    --brand-blue: #004795;
    --brand-accent: #ff8c00; /* गोल्डन से बदलकर वाइब्रेंट ऑरेंज किया गया */
    --brand-btn: #0056b3;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --border: #e2e8f0;
    --ad-bg: #fdfdfd;
    --star-gold: #f39c12;
}

/* Dark Mode Support */
body.amp-dark-mode {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --ad-bg: #1e293b;
}

/* --- 2. BASE RESET & SPEED FIXES --- */
* { box-sizing: border-box; }
body { 
    background: var(--bg-body); 
    color: var(--text-main); 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    padding: 0; 
    line-height: 1.6; 
    text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none; } /* Used for hiding widget titles */

/* --- 3. HEADER & NAVIGATION --- */
.site-header { 
    background: var(--bg-card); 
    border-bottom: 2px solid var(--border); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 24px; font-weight: 800; color: var(--brand-blue); }
.logo-text span { color: var(--brand-accent); }

.header-controls { display: flex; align-items: center; gap: 15px; }
.control-btn { background: transparent; border: none; cursor: pointer; font-size: 22px; color: var(--brand-blue); padding: 5px; display: flex; align-items: center; }
body.amp-dark-mode .control-btn { color: white; }

.main-navigation ul { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
.main-navigation li a { font-weight: 600; font-size: 15px; }
.main-navigation li a:hover { color: var(--brand-blue); }

/* Hamburger Menu Icon */
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10001; }
.bar { width: 100%; height: 3px; background-color: var(--brand-blue); border-radius: 10px; transition: all 0.3s ease; display: block; }
body.amp-dark-mode .bar { background-color: white; }

/* Hamburger Animation */
.menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- 4. HERO SECTION --- */
.hero-section { background: linear-gradient(135deg, var(--brand-blue), #1e293b); padding: 80px 0; text-align: center; color: white; }
.hero-section h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }

/* --- 5. GRIDS & CARDS (Tools & Posts) --- */
.hp-category-section { margin-bottom: 60px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-left: 5px solid var(--brand-accent); padding-left: 15px; }
.hp-tool-grid, .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }

.hp-tool-card, .news-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: 0.3s transform ease; height: 100%; }
.hp-tool-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.hp-tool-image-box { width: 100%; aspect-ratio: 16/9; background: #f1f5f9; overflow: hidden; }
.hp-tool-image-box img { width: 100%; height: 100%; object-fit: cover; }
.hp-tool-content { padding: 20px; text-align: center; }
.hp-tool-title { font-size: 19px; font-weight: 800; color: var(--brand-blue); margin-bottom: 10px; }
.hp-tool-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; }
.hp-tool-btn { background: var(--brand-blue); color: white !important; padding: 10px 25px; border-radius: 50px; font-weight: 700; display: inline-block; transition: 0.3s; }
.hp-tool-btn:hover { background: var(--brand-btn); transform: scale(1.05); }

/* --- 6. STAR RATING --- */
.star-rating-wrapper { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating-wrapper input { display: none; }
.star-rating-wrapper label { font-size: 32px; color: #ccc; cursor: pointer; transition: 0.3s; margin-right: 5px; }
.star-rating-wrapper input:checked ~ label,
.star-rating-wrapper label:hover,
.star-rating-wrapper label:hover ~ label { color: var(--star-gold); }
.comment-stars { color: var(--star-gold); letter-spacing: 2px; }

/* --- 7. SIDEBAR STYLING --- */
.widget { background: var(--bg-card); padding: 25px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 30px; }
.widget-title { font-size: 18px; font-weight: 800; color: var(--brand-blue); margin-bottom: 20px; border-bottom: 2px solid var(--brand-accent); padding-bottom: 5px; }
.sidebar-list, .sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-cat-list li a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-weight: 600; }

/* --- 8. FOOTER --- */
.site-footer { 
    background: var(--brand-blue) !important; 
    color: #ffffff !important; 
    padding: 60px 0 30px; 
}

.site-footer p, 
.site-footer a, 
.site-footer .footer-widget-title, 
.site-footer .site-info,
.site-footer .site-info p,
.site-footer .site-info div { 
    color: #ffffff !important; 
    opacity: 1 !important; 
}

.site-footer a:hover {
    color: var(--brand-accent) !important; /* होवर करने पर वाइब्रेंट ऑरेंज दिखेगा */
    text-decoration: underline;
}

.footer-menu-list li a, 
.footer-social-links li a {
    color: #ffffff !important;
}

/* --- 9. ADSENSE SLOTS (Adblocker Safe) --- */
.qp-ad-container, .qp-pro-box {
    background: var(--ad-bg);
    margin: 25px auto;
    text-align: center;
    border: 1px dashed var(--border);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    overflow: hidden;
}

/* --- 10. COMMENT FORM HIDES --- */
.comment-form-author, .comment-form-email, .comment-form-url, .comment-form-cookies-consent, .comment-notes {
    display: none !important;
}

/* --- 11. RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-section h1 { font-size: 1.8rem; }
    .menu-toggle { display: flex; }
    .main-navigation { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-card); z-index: 10000; padding: 100px 20px 40px; overflow-y: auto; }
    .main-navigation.toggled { display: block !important; }
    .main-navigation ul { flex-direction: column; gap: 25px; align-items: center; }
    .main-navigation ul li a { font-size: 22px; font-weight: 800; color: var(--brand-blue); }
    .hp-tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .hp-tool-grid { grid-template-columns: 1fr; }
    .container { padding: 0 15px; }
}

/* --- PAGINATION STYLING --- */
.pagination-wrapper {
    margin: 50px 0;
    text-align: center;
}

.pagination-wrapper ul.page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--brand-blue);
    border-radius: 6px;
    font-weight: 700;
    transition: 0.3s;
    text-decoration: none;
}

.pagination-wrapper a.page-numbers:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pagination-wrapper .page-numbers.current {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
    cursor: default;
}

.pagination-wrapper .prev.page-numbers, 
.pagination-wrapper .next.page-numbers {
    background: var(--brand-blue);
    color: #fff;
}

.pagination-wrapper .prev.page-numbers:hover, 
.pagination-wrapper .next.page-numbers:hover {
    background: var(--brand-btn);
}

body.amp-dark-mode .pagination-wrapper .page-numbers {
    background: var(--bg-card);
    border-color: var(--border);
    color: #fff;
}

/* --- Logo Image Styling --- */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo-link img {
    max-height: 65px; /* हेडर के अनुसार लोगो की ऊंचाई */
    width: auto;      /* चौड़ाई अपने आप एडजस्ट होगी */
    transition: transform 0.3s ease;
}

.custom-logo-link:hover img {
    transform: scale(1.05); /* होवर करने पर हल्का सा ज़ूम */
}

/* Dark Mode में लोगो की दृश्यता (Visibility) सुधारने के लिए */
body.amp-dark-mode .custom-logo-link img {
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.5));
}

/* मोबाइल के लिए लोगो साइज एडजस्टमेंट */
@media (max-width: 900px) {
    .custom-logo-link img {
        max-height: 50px; /* मोबाइल पर लोगो थोड़ा छोटा दिखेगा */
    }
}