/*
Theme Name: WPH Job Pro
Theme URI: https://webpresshub.net
Description: A modern, modular, responsive child theme for GeneratePress focused on news and blog portals.
Author: WebPressHub
Author URI: https://webpresshub.net
Template: generatepress
Version: 2.0.0
Text Domain: wph-news
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --wph-primary: #dc2626;
    /* News Portal Red */
    --wph-secondary: #e11d48;
    /* Accent Rose */
    --wph-bg: #ffffff;
    /* Light Slate Body Background */
    --wph-text: #0f172a;
    /* Slate 900 Text */
    --wph-text-muted: #64748b;
    /* Slate 500 Subtext */
    --wph-border: #e2e8f0;
    /* Slate 200 border */
    --wph-card-bg: #ffffff;
    /* Card Background */
    --wph-success: #22c55e;
    /* Verified / Success Green */

    /* Layout */
    --wph-container: 1240px;
    --wph-spacing: 0.85rem;
    --wph-radius: 10px;
    --wph-radius-sm: 6px;
    --wph-radius-full: 9999px;

    /* Shadows */
    --wph-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
    --wph-shadow-hover: 0 12px 20px -5px rgba(15, 23, 42, 0.06), 0 6px 8px -6px rgba(15, 23, 42, 0.06);
    --wph-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

    /* Typography defaults */
    --wph-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base resets & typography */
*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--wph-text);
    font-family: var(--wph-font);
    line-height: 1.5;
    background-color: #ffffff !important;
}

.site,
#page {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--wph-text);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
    color: var(--wph-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--wph-text);
    font-family: var(--wph-font);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* =========================
   Logo Sizing & Responsiveness
========================= */
.wph-header-inner .site-branding {
    width: 18%;
    /* Scale dynamically relative to header container on desktop */
    max-width: 200px;
    min-width: 130px;
}

.wph-header-inner .site-branding .custom-logo-link {
    display: block;
    width: 100%;
}

.wph-header-inner .site-branding img,
.wph-header-inner .site-branding .custom-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Mobile header logo responsive width */
.wph-mobile-header .site-branding {
    width: 40%;
    max-width: 145px;
    min-width: 115px;
}

.wph-mobile-header .site-branding .custom-logo-link {
    display: block;
    width: 100%;
}

.wph-mobile-header .site-branding img,
.wph-mobile-header .site-branding .custom-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Mobile drawer logo responsive width */
.wph-mobile-drawer .site-branding {
    width: 55%;
    max-width: 160px;
    min-width: 115px;
}

.wph-mobile-drawer .site-branding .custom-logo-link {
    display: block;
    width: 100%;
}

.wph-mobile-drawer .site-branding img,
.wph-mobile-drawer .site-branding .custom-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Footer logo responsive width */
.footer-widget-col .custom-logo-link {
    display: block;
    width: 55%;
    max-width: 160px;
    min-width: 110px;
    margin-bottom: 1.25rem;
}

.footer-widget-col .custom-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}
/* =========================================================
   WPH JOB PRO — MODERN JOB PORTAL VISUAL REFRESH
   Palette: Deep Navy + Emerald + Soft Slate
========================================================= */
:root {
    --wph-primary: #0f766e;
    --wph-secondary: #14b8a6;
    --wph-navy: #0f172a;
    --wph-navy-2: #1e293b;
    --wph-bg-soft: #f8fafc;
    --wph-text: #0f172a;
    --wph-text-muted: #64748b;
    --wph-border: #e2e8f0;
    --wph-card-bg: #ffffff;
    --wph-success: #16a34a;
    --wph-radius: 14px;
    --wph-radius-sm: 10px;
    --wph-shadow: 0 6px 24px rgba(15, 23, 42, .07);
    --wph-shadow-hover: 0 16px 38px rgba(15, 23, 42, .12);
}

html { scroll-behavior: smooth; }
body { background: var(--wph-bg-soft) !important; color: var(--wph-text); }

/* Header */
.site-header,
.wph-header,
.wph-header-inner {
    background: #fff !important;
}
.wph-header-inner {
    min-height: 72px;
    border-bottom: 1px solid rgba(226,232,240,.9);
    box-shadow: 0 2px 14px rgba(15,23,42,.04);
}
.wph-header-inner a { font-weight: 600; }
.wph-header-inner .main-navigation a:hover,
.wph-header-inner .main-navigation .current-menu-item > a {
    color: var(--wph-primary) !important;
}

/* Hero */
.wph-hero,
.hero-section,
.wph-home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e 0%, #0f8f83 45%, #2563eb 100%) !important;
}
.wph-hero:before,
.hero-section:before,
.wph-home-hero:before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -180px;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    pointer-events: none;
}
.wph-hero h1,
.hero-section h1,
.wph-home-hero h1 {
    color: #fff !important;
    letter-spacing: -.02em;
    font-weight: 800;
}
.wph-hero p,
.hero-section p,
.wph-home-hero p { color: rgba(255,255,255,.88) !important; }

/* Search box */
.wph-hero input[type="search"],
.wph-hero input[type="text"],
.hero-section input[type="search"],
.hero-section input[type="text"],
.wph-home-hero input[type="search"],
.wph-home-hero input[type="text"] {
    border: 0 !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.15) !important;
}
.wph-hero button,
.hero-section button,
.wph-home-hero button,
.wph-hero input[type="submit"],
.hero-section input[type="submit"],
.wph-home-hero input[type="submit"] {
    background: var(--wph-primary) !important;
    border-color: var(--wph-primary) !important;
}

/* Main content */
.site-content,
.content-area { background: transparent; }

/* Social/channel buttons */
.wph-social-links a,
.wph-social-buttons a,
.social-links a {
    border-radius: 9px !important;
    box-shadow: 0 4px 14px rgba(15,23,42,.06);
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.wph-social-links a:hover,
.wph-social-buttons a:hover,
.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,23,42,.12);
    filter: saturate(1.08);
}

/* Category navigation cards */
.wph-category-card,
.wph-category-item,
.category-card {
    background: #fff !important;
    border: 1px solid var(--wph-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(15,23,42,.025);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.wph-category-card:hover,
.wph-category-item:hover,
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20,184,166,.45) !important;
    box-shadow: var(--wph-shadow);
}

/* Job/article cards */
.wph-job-card,
.wph-post-card,
.job-card,
.post-card,
.wph-card,
article {
    border-color: var(--wph-border) !important;
}
.wph-job-card:hover,
.wph-post-card:hover,
.job-card:hover,
.post-card:hover {
    box-shadow: var(--wph-shadow-hover) !important;
    transform: translateY(-2px);
}

/* Section headings */
.wph-section-title,
.section-title,
.wph-home-section-title {
    color: var(--wph-navy) !important;
    font-weight: 800 !important;
    letter-spacing: -.015em;
}
.wph-section-title:after,
.section-title:after,
.wph-home-section-title:after {
    background: linear-gradient(90deg, var(--wph-secondary), #2563eb) !important;
}

/* Buttons */
button,
.button,
.wp-block-button__link,
input[type="submit"],
.wph-button {
    border-radius: 9px !important;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
.wph-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(15,23,42,.12);
}

/* Apply Now / primary job action */
a[class*="apply"],
a[class*="apply-now"],
.apply-now,
.wph-apply-btn {
    color: var(--wph-primary) !important;
    border-color: rgba(15,118,110,.35) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}
a[class*="apply"]:hover,
a[class*="apply-now"]:hover,
.apply-now:hover,
.wph-apply-btn:hover {
    background: var(--wph-primary) !important;
    color: #fff !important;
}

/* Metadata */
.wph-meta,
.job-meta,
.post-meta,
.entry-meta {
    color: var(--wph-text-muted) !important;
    font-size: .84rem;
}

/* Footer */
.site-footer,
.wph-footer {
    background: var(--wph-navy) !important;
    color: #cbd5e1;
}
.site-footer a,
.wph-footer a { color: #e2e8f0; }
.site-footer a:hover,
.wph-footer a:hover { color: #5eead4; }

/* Forms */
input:not([type="submit"]),
select,
textarea {
    border: 1px solid #dbe3ec !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--wph-text) !important;
}
input:not([type="submit"]):focus,
select:focus,
textarea:focus {
    border-color: var(--wph-secondary) !important;
    box-shadow: 0 0 0 3px rgba(20,184,166,.12) !important;
    outline: none !important;
}

/* Admin/settings cards remain clean */
.wph-settings-wrap .wph-settings-section,
.wph-settings-wrap .settings-section {
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(15,23,42,.04);
}

/* Mobile */
@media (max-width: 768px) {
    .wph-header-inner { min-height: 62px; }
    .wph-hero h1,
    .hero-section h1,
    .wph-home-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .wph-hero,
    .hero-section,
    .wph-home-hero { padding-left: 16px; padding-right: 16px; }
}
