/*
 * ToolClub Theme CSS - Cleaned, Optimized, Attractive, and Fully Responsive
 * Finalized for: Lightweight design, Attractive cards, Search Bar styling, AND MOBILE EXPERIENCE.
 * Updated: Included CV Template Styles
 * Optimized: Removed duplicate and conflicting Resume Builder sections.
 */

/* =========================================
   START: CSS VARIABLES
   ========================================= */
:root {
    --tool-primary: #007bff; /* Vibrant Blue */
    --tool-secondary: #28a745; /* Green */
    --tool-bg: #f5f7fb; /* Ultra Light Background */
    --tool-dark: #1b1b1f; /* Near Black Text */
    --tool-muted: #6c757d; /* Muted Gray */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--tool-bg);
    color: var(--tool-dark);
    margin: 0;
}

/* =========================================
   START: COMPACT STICKY HEADER & NAVBAR
   ========================================= */
.nav-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Logo Styles */
.logo-wrap {
    z-index: 1001;
}

.logo-wrap img {
    max-height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle Button */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin-left: 10px;
}

/* Hamburger Icon */
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--tool-primary);
    height: 3px;
    width: 25px;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    bottom: -8px;
}

/* Menu Items */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 10px;
    position: relative;
}

.main-navigation a {
    color: #1a1a1a; /* Darker text for better contrast */
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #0056b3;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #0056b3;
    font-weight: 600;
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .nav-toggle-label {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 40px;
        transition: right 0.4s ease-in-out;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation li {
        margin: 5px 0;
        width: 100%;
    }
    
    .main-navigation a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Menu Toggle Animation */
    .nav-toggle:checked ~ .main-navigation {
        right: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-toggle:checked ~ .nav-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Header scroll effect */
.scrolled .nav-header {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 5px 0;
}

.scrolled .logo-wrap img {
    max-height: 35px;
}

/* =========================================
   START: SEARCH BAR STYLING
   ========================================= */
.header-search-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-search-wrap .search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    max-width: 200px;
    transition: box-shadow 150ms ease, border-color 150ms ease;
}

.header-search-wrap .search-form:focus-within {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.header-search-wrap .search-field {
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background: transparent;
    flex-grow: 1;
    outline: none;
}

.header-search-wrap .search-submit {
    background: var(--tool-primary);
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 150ms ease;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}
.header-search-wrap .search-submit:hover {
    background: #0056b3;
}

/* --- MOBILE RESPONSIVE MENU --- */
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 768px) {
    .nav-header { padding: 0.5rem 0; }
    .nav-toggle-label { display: block; cursor: pointer; padding: 10px; z-index: 1000; }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
        display: block; background: #333; height: 2px; width: 24px; border-radius: 2px; position: relative;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-toggle-label span::before { bottom: 7px; }
    .nav-toggle-label span::after { top: 7px; }
    .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked + .nav-toggle-label span::before { bottom: 0; transform: rotate(-45deg); }
    .nav-toggle:checked + .nav-toggle-label span::after { top: 0; transform: rotate(45deg); }

    .nav-links {
        position: absolute; top: 60px; left: 0; background: #fff; width: 100%;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 1rem 0;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out;
    }
    .nav-links .menu { flex-direction: column; gap: 15px; text-align: center; padding: 0; }
    .nav-toggle:checked ~ .nav-links { display: block; max-height: 500px; }
    .nav-header .navbar > .header-search-wrap { display: none; }
    .nav-links .header-search-wrap { display: block; width: 90%; max-width: 300px; margin: 1rem auto; }
}

/* =========================================
   GENERAL LAYOUT
   ========================================= */
.container, 
.navbar,
.landing-content,
.landing-hero,
.main-content {
    max-width: 1800px;  
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;  
}

.site-intro-text { padding-top: 1.5rem; }
.site-intro-text p { color: #333333 !important; font-weight: 500; }

/* =========================================
   LANDING PAGE LAYOUT (Front Page)
   ========================================= */

.landing-hero {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 80px 20px;
    background: linear-gradient(100deg,#4facfe,#00f2fe);
    color: #fff;
    text-align: center;
}

.landing-hero-inner h1 {
    font-size: 2.5rem;
    margin: 0 0 10px;
}

.landing-hero-inner p {
    font-size: 1.2rem;
    margin: 0 0 20px;
}

.landing-hero-btn {
    display: inline-block;
    background: #ffffff;
    color: #007acc;
    border-radius: 6px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.landing-hero-btn:hover {
    background: #eef6ff;
}

.landing-section {
    background: #ffffff;
    margin: 40px auto;
    max-width: 1800px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.landing-section-content {
    padding: 20px;
}

.landing-section-content h2 {
    margin-top: 0;
}

.landing-section-content p {
    color: #555;
}

.landing-section-btn {
    display: inline-block;
    margin-top: 10px;
    background: #007acc;
    color: #ffffff;
    border-radius: 6px;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
}

.landing-section-btn:hover {
    background: #005c99;
}

.template-slider {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.template-slider::-webkit-scrollbar {
    height: 8px;
}

.template-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.slide img {
    width: 180px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Archive / Category hero to visually match landing style */
.hero {
    background: linear-gradient(100deg,#4facfe,#00f2fe);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 2.2rem;
}

.hero p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 60px 16px;
    }

    .landing-hero-inner h1 {
        font-size: 2rem;
    }

    .slide img {
        width: 150px;
    }
}
.section-title { text-align: center; font-size: 2rem; margin-bottom: 1.5rem; }
.section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.ad-spot { text-align: center; padding: 1.5rem 0; }

/* ===== GRID SYSTEM ===== */
.tool-suite-grid, .tool-grid, .game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .tool-suite-grid, .tool-grid, .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .tool-suite-grid, .tool-grid, .game-grid { grid-template-columns: 1fr 1fr !important; gap: 0.5rem !important; }
}

/* ===== STANDARD CARDS ===== */
.tool-suite-card, .tool-card, .game-card {
    background: #fff; border-radius: 12px; padding: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04); border: 1px solid #eee;
    text-align: center; text-decoration: none; color: inherit;
    transition: transform 200ms ease, box-shadow 200ms ease;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden; height: 100%;
}
.tool-suite-card:hover, .tool-card:hover, .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2), 0 4px 15px rgba(15, 23, 42, 0.08);
}

.tool-card h2, .tool-card h3 {
    font-size: 0.95rem !important; font-weight: 600; line-height: 1.2;
    margin: 0.5rem 0 0.25rem 0; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.tool-card p {
    font-size: 0.8rem; color: var(--tool-muted); margin: 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-card-thumb {
    width: 60px; height: 60px; object-fit: cover; border-radius: 16px; margin-bottom: 0.5rem;
}

/* Mobile Card Adjustments */
@media (max-width: 600px) {
    .tool-card { padding: 0.5rem !important; border-radius: 8px !important; }
    .tool-card-thumb { width: 40px !important; height: 40px !important; }
    .tool-card h3 { font-size: 0.8rem !important; }
    .tool-card p { display: none !important; }
}

/* Category Cards */
.cat-card {
    background: #fff; padding: 1rem; border-radius: 12px; text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); text-decoration: none; color: var(--tool-primary);
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
@media (max-width: 768px) { .category-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }


/* =========================================
   NEW: CV TEMPLATES STYLES (Novoresume Style)
   ========================================= */

/* Override Grid for CVs to allow taller cards */
.cv-grid .cv-card-style {
    aspect-ratio: auto !important; /* Don't force square */
    height: auto !important;
    padding: 0 !important; /* Remove standard padding */
    display: block !important; /* Reset flex */
    border: 1px solid #e2e8f0;
}

.cv-img-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 210/297; /* A4 Ratio */
    background: #f1f5f9;
    width: 100%;
}

.cv-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Important: Show top of resume */
    transition: filter 0.3s ease, transform 0.5s ease;
}

/* Hover Effect: Zoom Image slightly */
.cv-card-style:hover .cv-img-link img {
    transform: scale(1.05);
}

/* Hover Overlay Button */
.cv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* Dark Overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cv-card-style:hover .cv-overlay {
    opacity: 1;
}

.btn-use-template {
    background: var(--tool-primary);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.cv-card-style:hover .btn-use-template {
    transform: translateY(0);
}

/* CV Card Footer info */
.cv-card-info {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cv-card-info h3 {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    color: var(--tool-dark);
    text-align: left !important;
}

.btn-mini-link {
    color: var(--tool-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mobile Fix for CVs */
@media (max-width: 600px) {
    /* Mobile par button hamesha dikhana better hai ya sirf click par */
    .cv-overlay {
        display: none; /* Hide hover effect on mobile */
    }
    .cv-card-info {
        padding: 10px;
    }
}

/* =========================================
   A4 STYLE THUMBNAILS FOR TOOLS LISTS
   ========================================= */

.tool-a4-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    border: 1px solid #eee;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 200ms ease, box-shadow 200ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    position: relative;
}

.tool-a4-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2), 0 4px 15px rgba(15, 23, 42, 0.08);
}

/* Hover CTA Button */
.tool-a4-card::after {
    content: "Customize Resume";
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: #0073e6;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

.tool-a4-card:hover::after {
    opacity: 1;
}

.tool-a4-box {
    width: 100%;
    aspect-ratio: 210 / 297; /* perfect A4 ratio */
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-a4-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.tool-a4-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.tool-a4-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.tool-a4-card p {
    font-size: 0.8rem;
    color: var(--tool-muted);
    margin: 0;
}

/* ===== GRID RESPONSIVE ===== */
.tool-suite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1024px) {
    .tool-suite-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .tool-suite-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile A4 look fix */
    .tool-a4-box {
        aspect-ratio: 210 / 297;
    }

    .tool-a4-card::after {
        bottom: 10px;
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}



/* =========================================
   FOOTER STYLES
   ========================================= */
.footer-section { background: #1f1f25; color: #cbd5f5; padding: 3rem 0; margin-top: 3rem; font-size: 0.95rem; }
.footer-content { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-col { flex: 1; min-width: 220px; }
.footer-col h4 { color: #fff; border-bottom: 2px solid var(--tool-secondary); padding-bottom: 0.35rem; margin-bottom: 1rem; }
.footer-menu, .footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 0.35rem; }
.footer-menu a { color: inherit; text-decoration: none; }
.footer-menu a:hover { color: var(--tool-secondary); }
.copyright { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.85rem; }
@media (max-width: 768px) { .footer-content { flex-direction: column; } }

/* Top Tools footer list */
.footer-top-tools {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-top-tools li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-decoration: none;
    color: #e5ecff;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    transition: background 150ms ease, transform 150ms ease;
}

.footer-top-tools li a:hover {
    background: rgba(15, 23, 42, 0.6);
    transform: translateY(-1px);
}

.footer-top-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-top-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--tool-primary);
    color: #fff;
    white-space: nowrap;
}

.footer-top-pill--invoice { background: #0ea5e9; }
.footer-top-pill--cover_letter { background: #6366f1; }
.footer-top-pill--salary_slip { background: #22c55e; }
.footer-top-pill--biodata { background: #f97316; }
.footer-top-pill--job_description { background: #ec4899; }


/* =========================================
   RESUME BUILDER APP STYLES (Consolidated & Final)
   ========================================= */

/* 1. FORCE LAYOUT (Left Editor - Right Preview) */
.tool-resume {
    max-width: 1400px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 20px;
    box-sizing: border-box;
    width: 100% !important; /* Force width */
}

.tool-resume__grid {
    display: grid !important;
    grid-template-columns: 360px 1fr !important; /* Editor Fixed, Preview Flexible */
    gap: 30px !important;
    align-items: start !important;
}

/* 2. EDITOR PANEL STYLE */
.tool-resume__card {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    position: sticky !important;
    top: 20px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    z-index: 50;
    text-align: left !important;
}

/* Inputs Styling */
.tool-resume__card label {
    font-weight: 700 !important;
    color: #475569 !important;
    display: block !important;
    margin-bottom: 5px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
}
.tool-resume__card input, .tool-resume__card textarea, .tool-resume__card select {
    width: 100% !important;
    padding: 10px 12px !important;
    margin-bottom: 15px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #333 !important;
    box-sizing: border-box !important;
    font-size: 0.95rem; /* Better standard sizing */
}

.dual-input { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 15px !important; }

/* 3. PREVIEW AREA (Grey Background) */
.preview-wrapper {
    background: #525659 !important;
    padding: 40px !important;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 850px;
    overflow: auto; /* Scroll allowed if needed */
}

/* 4. A4 PAPER (The Resume Itself) */
.resume-surface {
    width: 210mm !important;
    min-height: 297mm !important;
    background: white !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
    margin: 0 auto !important;
    position: relative !important;
    flex-shrink: 0 !important;
    box-sizing: border-box; /* Crucial for internal padding */
    transform-origin: top center;
}

/* 5. BUTTONS */
.action-buttons-container { margin-top: 15px; border-top: 1px solid #eee; padding-top: 15px; background: #fff; position: sticky; bottom: 0; }
.action-btn { width: 100%; padding: 12px; margin-bottom: 10px; border: none; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.btn-pdf { background: #1e293b; color: #fff; }
.btn-word { background: #2563eb; color: #fff; }
.btn-print { background: #f1f5f9; color: #333; border: 1px solid #ddd; }

/* 6. MOBILE FIXES */
@media (max-width: 1024px) {
    .tool-resume__grid { grid-template-columns: 1fr !important; }
    .tool-resume__card { position: relative !important; top: 0 !important; max-height: none !important; }
    .preview-wrapper { padding: 20px 10px !important; min-height: 600px; }

    /* Auto Scale for Mobile */
    .resume-surface {
        transform-origin: top center;
        transform: scale(0.5) !important;
        margin-bottom: -140% !important;
    }
}

/* 7. PRINT FIX (A4 full page print) */
@media print {
    /* Hide everything except the resume surface */
    body, html, .site-header, .site-footer, .tool-resume__card, .nav-header, #wpadminbar, .related-tools, .content-wrapper, .modern-hero, .ad-spot {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }

    /* Resume Wrapper ko dikhao */
    .tool-resume, .preview-wrapper, .tool-resume__grid {
        display: block !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        visibility: visible !important;
    }

    /* A4 Paper ko Page par set karo */
    .resume-surface {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        transform: none !important; /* Scale reset */
    }

    @page {
        margin: 0;
        size: auto;
    }
}

/* Main content area */
.main-content {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;  
    gap: 2rem;
    padding: 2rem;
}

/* Main content area */
.content-area {
    grid-column: 2;  
    width: 100%;
}

/* Sidebars */
.sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-left {
    grid-column: 1;
}

.sidebar-right {
    grid-column: 3;
}

/* Responsive adjustments */
@media (max-width: 1600px) {
    .container,
    .landing-section,
    .landing-section-content {
        max-width: 1400px;
    }
}

@media (max-width: 1200px) {
    .container,
    .landing-section,
    .landing-section-content {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .container,
    .landing-section,
    .landing-section-content {
        padding: 0 15px;
    }
    
    .landing-hero {
        padding: 60px 15px;
    }
}

/* =========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================= */

/* Base Responsive Typography */
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    overflow-x: auto;
    display: block;
}

/* Responsive Embeds */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Grid System */
.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
    box-sizing: border-box;
}

/* Responsive Breakpoints */
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    html { font-size: 14px; }
    
    .container {
        padding: 0 10px;
    }
    
    .col-xs-1 { width: 8.33%; }
    .col-xs-2 { width: 16.66%; }
    .col-xs-3 { width: 25%; }
    .col-xs-4 { width: 33.33%; }
    .col-xs-5 { width: 41.66%; }
    .col-xs-6 { width: 50%; }
    .col-xs-7 { width: 58.33%; }
    .col-xs-8 { width: 66.66%; }
    .col-xs-9 { width: 75%; }
    .col-xs-10 { width: 83.33%; }
    .col-xs-11 { width: 91.66%; }
    .col-xs-12 { width: 100%; }
    
    /* Hide elements on mobile */
    .hide-on-mobile {
        display: none !important;
    }
    
    /* Adjust spacing */
    .section {
        padding: 30px 0;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .col-s-1 { width: 8.33%; }
    .col-s-2 { width: 16.66%; }
    .col-s-3 { width: 25%; }
    .col-s-4 { width: 33.33%; }
    .col-s-5 { width: 41.66%; }
    .col-s-6 { width: 50%; }
    .col-s-7 { width: 58.33%; }
    .col-s-8 { width: 66.66%; }
    .col-s-9 { width: 75%; }
    .col-s-10 { width: 83.33%; }
    .col-s-11 { width: 91.66%; }
    .col-s-12 { width: 100%; }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .col-m-1 { width: 8.33%; }
    .col-m-2 { width: 16.66%; }
    .col-m-3 { width: 25%; }
    .col-m-4 { width: 33.33%; }
    .col-m-5 { width: 41.66%; }
    .col-m-6 { width: 50%; }
    .col-m-7 { width: 58.33%; }
    .col-m-8 { width: 66.66%; }
    .col-m-9 { width: 75%; }
    .col-m-10 { width: 83.33%; }
    .col-m-11 { width: 91.66%; }
    .col-m-12 { width: 100%; }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .col-l-1 { width: 8.33%; }
    .col-l-2 { width: 16.66%; }
    .col-l-3 { width: 25%; }
    .col-l-4 { width: 33.33%; }
    .col-l-5 { width: 41.66%; }
    .col-l-6 { width: 50%; }
    .col-l-7 { width: 58.33%; }
    .col-l-8 { width: 66.66%; }
    .col-l-9 { width: 75%; }
    .col-l-10 { width: 83.33%; }
    .col-l-11 { width: 91.66%; }
    .col-l-12 { width: 100%; }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .col-xl-1 { width: 8.33%; }
    .col-xl-2 { width: 16.66%; }
    .col-xl-3 { width: 25%; }
    .col-xl-4 { width: 33.33%; }
    .col-xl-5 { width: 41.66%; }
    .col-xl-6 { width: 50%; }
    .col-xl-7 { width: 58.33%; }
    .col-xl-8 { width: 66.66%; }
    .col-xl-9 { width: 75%; }
    .col-xl-10 { width: 83.33%; }
    .col-xl-11 { width: 91.66%; }
    .col-xl-12 { width: 100%; }
}

/* Responsive Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Responsive Spacing */
.padding-xs { padding: 5px; }
.padding-sm { padding: 10px; }
.padding-md { padding: 20px; }
.padding-lg { padding: 30px; }
.padding-xl { padding: 50px; }

.margin-xs { margin: 5px; }
.margin-sm { margin: 10px; }
.margin-md { margin: 20px; }
.margin-lg { margin: 30px; }
.margin-xl { margin: 50px; }

/* Responsive Visibility */
.hidden { display: none !important; }
.visible-xs { display: none !important; }

@media (max-width: 767px) {
    .hidden-xs { display: none !important; }
    .visible-xs { display: block !important; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm { display: none !important; }
    .visible-sm { display: block !important; }
}

/* Responsive Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Responsive Navigation */
@media (max-width: 991px) {
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 40px;
        transition: right 0.4s ease-in-out;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-toggle:checked ~ .main-navigation {
        right: 0;
    }
}

/* Responsive Tables */
@media screen and (max-width: 768px) {
    .responsive-table {
        width: 100%;
        margin-bottom: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .responsive-table table {
        min-width: 600px;
    }
}

/* Responsive Images */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Utility Classes */
.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Print Styles */
@media print {
    .no-print, .no-print * {
        display: none !important;
    }
    
    body {
        padding: 0;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: auto;
        min-width: 750px;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Improved contrast for footer pills */
.footer-top-pill {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px 4px 2px 0;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-top-pill--tool {
    background-color: #0056b3; /* Darker blue for better contrast */
    color: #ffffff !important; /* Ensure white text */
    border: 1px solid #004494;
}

/* Ensure proper focus states for keyboard navigation */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.3);
}

/* Navigation toggle button styles */
.nav-toggle-label {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.nav-toggle-label:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* Hide the actual checkbox but keep it focusable for accessibility */
.nav-toggle {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Ensure proper contrast for navigation items */
.main-navigation a {
    color: #1a1a1a; /* Darker text for better contrast */
    text-decoration: none;
    padding: 12px 0;
    display: block;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #0056b3;
}

/* Ensure proper contrast for active/hover states */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #0056b3;
    font-weight: 600;
}

/* Footer contrast improvements */
.site-footer {
    background-color: #f8f9fa;
    color: #333;
    padding: 40px 0;
}

.site-footer a {
    color: #0056b3;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
}

/* Ensure form elements have sufficient contrast */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
    border: 1px solid #666;
    color: #333;
    background-color: #fff;
}

/* Button contrast */
button,
.button,
input[type="button"],
input[type="submit"] {
    background-color: #0056b3;
    color: #fff;
    border: 1px solid #004494;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
    background-color: #004494;
    color: #fff;
}

/* =========================================
   BLOG STYLES
   ========================================= */

/* Blog Layout */
.blog-main {
    padding: 60px 0;
    background-color: #f9fafb;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.blog-description {
    color: #4b5563;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-card__image {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.blog-card__thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__thumbnail {
    transform: scale(1.05);
}

.blog-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__header {
    margin-bottom: 16px;
}

.blog-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.blog-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__title a:hover {
    color: #0056b3;
}

.blog-card__meta {
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-card__meta a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__meta a:hover {
    color: #0056b3;
}

.blog-card__excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.blog-card__read-more {
    color: #0056b3;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.blog-card__read-more:hover {
    color: #003d82;
    text-decoration: underline;
}

.blog-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-card__categories a {
    background-color: #e5f0ff;
    color: #0056b3;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-card__categories a:hover {
    background-color: #cce0ff;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: #fff;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.page-numbers.current,
.page-numbers:hover {
    background-color: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

.page-numbers.dots {
    border: none;
    background: transparent;
}

.page-numbers.prev,
.page-numbers.next {
    min-width: 100px;
    width: auto;
    padding: 0 16px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-results__title {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.no-results p {
    color: #4b5563;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-results__actions {
    margin-top: 30px;
}

/* Search Form */
.search-form {
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
}

.search-form .search-field {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-form .search-field:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
    outline: none;
}

.search-form .search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form .search-submit:hover {
    background: #004494;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-main {
        padding: 40px 0;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-card__footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

/* Add delay for each card */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }
/* --- SEARCH BAR VISIBILITY FIX --- */

/* Desktop par mobile search chupao */
.mobile-search-only {
    display: none;
}

/* Mobile Devices par logic */
@media (max-width: 991px) {
    /* Header wali search chupao */
    .header-search-wrap {
        display: none !important;
    }
    
    /* Menu wali search dikhao */
    .mobile-search-only {
        display: block !important;
        width: 100%;
    }
    
    /* Search box styling mobile ke liye */
    .mobile-search-only form {
        display: flex;
        width: 100%;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    .mobile-search-only input {
        width: 100%;
        border: none;
        padding: 10px;
    }
    .mobile-search-only button {
        background: var(--tool-primary);
        color: #fff;
        border: none;
        padding: 0 15px;
    }
}