/* ==========================================================
   JOBDEKHO CORE SAAS DESIGN SYSTEM
   ========================================================== */
:root {
    --primary-blue: #2563eb;
    --dark-navy: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

body { font-family: 'Inter', sans-serif; color: var(--dark-navy); }
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; }

/* 1. Next-Gen Gutenberg Tables (For Job Details) */
.wp-block-table table {
    width: 100%; border-collapse: collapse; border-radius: 12px;
    overflow: hidden; box-shadow: var(--glass-shadow);
    background: #fff; margin: 2rem 0; border: 1px solid rgba(15, 23, 42, 0.1);
}
.wp-block-table th { background: var(--dark-navy); color: #fff; padding: 15px; text-align: left; }
.wp-block-table td { padding: 15px; border-bottom: 1px solid #f1f5f9; }
.wp-block-table tr:nth-child(even) { background: #f8fafc; }
.wp-block-table tr:hover { background: rgba(37, 99, 235, 0.04); }

/* 2. Premium Gutenberg Buttons (For Apply Now Links) */
.wp-block-button__link {
    background: var(--primary-blue) !important; color: #fff !important;
    border-radius: 8px !important; padding: 12px 24px !important;
    font-weight: 600 !important; font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s ease !important; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}
.wp-block-button__link:hover {
    background: #1d4ed8 !important; transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

/* 3. Glassmorphism Info Boxes (For 'Important Links' or 'Updates') */
.jobdekho-glass-box {
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 24px; box-shadow: var(--glass-shadow); margin: 2rem 0;
}




/* ==========================================================
   ASTRA THEME OVERRIDES (Making Astra look like a $10k SaaS)
   ========================================================== */

/* 1. Main Content Area (Glassmorphism Card) */
.ast-separate-container .ast-article-post, 
.ast-separate-container .ast-article-single {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: clamp(1.5rem, 5vw, 3rem); /* Fluid padding */
}

/* 2. Sidebar Widget Area (Ad-Ready) */
.ast-separate-container .widget {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 24px;
    margin-bottom: 2rem;
}

/* 3. Global Background (Light Slate to make glass pop) */
body, .site-content {
    background-color: #f8fafc !important; 
}

/* 4. Astra Default Pagination & Buttons Upgrade */
.ast-pagination .page-numbers.current,
.ast-button, .button, input[type="submit"] {
    background-color: var(--primary-blue) !important;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.ast-button:hover, .button:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}



/* ==========================================================
   GUTENBERG & ASTRA BLOG FEED UPGRADE (Next-Gen Grid)
   ========================================================== */

/* Change default column layout to Fluid Grid */
.ast-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: clamp(1.5rem, 3vw, 2.5rem) !important;
}

/* Make each job card a Glassmorphism Masterpiece */
.ast-article-post {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: var(--glass-shadow) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin-bottom: 0 !important; /* Overrides default spacing */
}

/* Hover Effects */
.ast-article-post:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15) !important; /* Primary Blue Glow */
}

/* Typography Upgrades for Job Titles */
.ast-article-post .entry-title a {
    color: var(--dark-navy) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem) !important;
    font-weight: 700 !important;
    transition: color 0.3s ease !important;
}

.ast-article-post .entry-title a:hover {
    color: var(--primary-blue) !important;
}

/* Clean up Read More button */
.ast-article-post .read-more a {
    background: transparent !important;
    color: var(--primary-blue) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
}

.ast-article-post .read-more a:hover {
    background: rgba(37, 99, 235, 0.1) !important;
}



/* ==========================================================
   HOME PAGE HERO SECTION (Next-Gen SaaS Design)
   ========================================================== */

.jd-hero-section {
    position: relative;
    padding: clamp(4rem, 8vw, 8rem) 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0 0 40px 40px;
    margin-top: -20px; /* Pulls it up tight under the header */
    margin-bottom: 4rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

/* Big Typography for Impact */
.jd-hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    color: var(--dark-navy);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* Gradient Text Effect for "Dream Job" */
.jd-hero-section h1 strong {
    background: linear-gradient(90deg, var(--primary-blue), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.jd-hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #475569;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-weight: 500;
}

/* Glassmorphism Search Bar inside Hero */
.jd-hero-section .wp-block-search {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 60px;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
    display: flex;
    transition: transform 0.3s ease;
}

.jd-hero-section .wp-block-search:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
}

.jd-hero-section .wp-block-search__input {
    border: none !important;
    background: transparent !important;
    padding: 15px 25px !important;
    font-size: 1.1rem !important;
    width: 100%;
    outline: none !important;
}

.jd-hero-section .wp-block-search__button {
    background: var(--primary-blue) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 15px 35px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.jd-hero-section .wp-block-search__button:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
}