/* ==========================================
   1. VARIABLES & GLOBAL RESET
   ========================================== */
:root {
    --primary-blue: #004a99;
    --safety-orange: #ff8c00;
    --dark-orange: #C44D00;
    --success-green: #10b981;
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    --dark-grey: #333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --border-color: #d1d5db;
}

* { box-sizing: border-box; }

body { 
    font-family: 'Segoe UI', system-ui, sans-serif; 
    line-height: 1.6; 
    color: var(--dark-grey); 
    background: var(--light-bg);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* ==========================================
   2. SHARED HEADER STYLES
   (Matches logic in header.php)
   ========================================== */
header { 
    background: var(--primary-blue); 
    color: white; 
    padding: 0.8rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo { font-size: 1.6rem; font-weight: bold; }
.logo span { color: var(--safety-orange); }

/* ==========================================
   3. DASHBOARD SPECIFIC STYLES
   (Preserved from your original file)
   ========================================== */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 90vh;
}

aside {
    background: #fff;
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
}

aside nav ul { list-style: none; padding: 0; }
aside nav ul li a { 
    text-decoration: none; 
    color: var(--dark-grey); 
    display: block; 
    padding: 12px 15px; 
    border-radius: 6px; 
    margin-bottom: 5px;
}

aside nav ul li a:hover { background: #f0f4f8; }
aside nav ul li a.active { background: var(--primary-blue); color: white; }

main { padding: 40px; }

.card { 
    background: white; 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-top: 5px solid var(--primary-blue);
}

h1 { color: var(--primary-blue); margin-top: 0; }

input, select, textarea { 
    width: 100%; padding: 12px; margin-bottom: 20px; 
    border: 1px solid var(--border-color); border-radius: 4px; 
}

.btn-post { 
    background: var(--safety-orange); color: white; border: none; 
    padding: 15px 30px; font-weight: bold; border-radius: 6px; cursor: pointer;
}

/* ==========================================
   4. HOME PAGE SPECIFIC STYLES
   (Restores the Hero and Cards)
   ========================================== */

/* Hero Section */
.home-hero {
    /* Ensure image path is correct relative to domain root */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/oklahoma-trades.webp') no-repeat center/cover;
    color: #ffffff;
    padding: 80px 5% 120px;
    text-align: center;
}
.home-hero h1 { color: #ffffff !important; font-size: 2.5rem; margin-bottom: 15px; }
.home-hero p { max-width: 800px; margin: 0 auto; font-size: 1.2rem; opacity: 0.9; color: #ffffff; }
.brand-eyebrow { font-weight: bold; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 10px; color: var(--safety-orange); }

/* page titles for secondary pages contact us, etc. */
.page-title { 
    padding: 30px;
     width: 100%;
    font-size: 1.1rem;
    text-align: center;
}

/* Home Grid Container (Fixes overlap issue) */
.home-container {
    max-width: 1100px;
    margin: -40px auto 50px; /* Pulls cards over Hero */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 0 20px !important; /* Forces reset of global 'main' padding */
    position: relative;
    z-index: 10;
}

/* Home Cards */
.home-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-blue);
}
.home-card-orange { border-top-color: var(--safety-orange); }
.home-card h2 { margin-top: 0; color: var(--primary-blue); font-size: 1.6rem; }

/* Home Buttons */
.btn-home {
    display: inline-block;
    background: var(--primary-blue);
    color: white !important;
    padding: 14px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    text-align: center;
    transition: transform 0.2s;
}
.btn-home:active { transform: scale(0.98); }
.btn-home-orange { background: var(--dark-orange); }

/* ==========================================
   5. RESPONSIVE QUERIES
   ========================================== */
@media (max-width: 900px) {
    .dashboard-wrapper { grid-template-columns: 1fr; }
    aside { display: none; }
    
    .home-container { grid-template-columns: 1fr; margin-top: 20px; }
    .home-hero h1 { font-size: 2rem; }
}
/* ==========================================
   6. SPLIT HERO (HOMEPAGE TRAFFIC COP)
   ========================================== */
.split-hero {
    background: linear-gradient(rgba(0, 40, 85, 0.85), rgba(0, 40, 85, 0.75)), url('/images/oklahoma-trades.webp') no-repeat center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-content { width: 100%; max-width: 1200px; }

.main-title { 
    color: var(--white); 
    font-size: 3.5rem; 
    margin-bottom: 10px; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.5); 
}

.sub-title { 
    color: #e0e0e0; 
    font-size: 1.3rem; 
    margin-bottom: 60px; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.role-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 480px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    border-top: 6px solid transparent;
}

.role-card:hover { transform: translateY(-5px); }

/* Seeker Card Styling */
.role-card.seeker-card { border-top-color: var(--primary-blue); }
.role-card.seeker-card h2 { color: var(--primary-blue); }

/* Employer Card Styling */
.role-card.employer-card { border-top-color: var(--safety-orange); }
.role-card.employer-card h2 { color: var(--dark-orange); }

.role-card h2 { font-size: 2rem; margin-bottom: 15px; margin-top: 0; }
.role-card p { color: #555; font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6; }

/* ==========================================
   7. SEEKER PORTAL SPECIFIC
   ========================================== */
.seeker-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/oklahoma-trades.webp') no-repeat center/cover;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 100px 15px 140px;
    color: white;
    text-align: center;
}

/* Feature Icons Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-bottom: 4px solid var(--primary-blue);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .main-title { font-size: 2.2rem; }
    .card-container { flex-direction: column; }
    .role-card { width: 100%; }
}