/**
 * South African Jobs Custom CSS
 * Add this to your theme's style.css or load as a separate stylesheet
 */

/* Base Styles with South African Color Palette */
:root {
    /* South African flag-inspired palette */
    --primary: #005A9C; /* Blue from SA flag but slightly more usable */
    --primary-dark: #004B8D;
    --secondary: #6c757d;
    --success: #007A4D; /* Green from SA flag */
    --info: #0dcaf0;
    --warning: #FFB81C; /* Gold/yellow from SA flag */
    --danger: #E03C31; /* Red from SA flag */
    --light: #f8f9fa;
    --dark: #212529;
    
    /* Additional SA colors */
    --sa-blue: #001489;
    --sa-red: #E03C31;
    --sa-yellow: #FFB81C;
    --sa-green: #007A4D;
    --sa-black: #000000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .highlight-text {
    color: var(--warning);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-ad-container {
    transform: rotate(2deg);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.hero-ad-container:hover {
    transform: rotate(0deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.stat-badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* South African flag color accents */
.sa-accent-green {
    color: #007A4D; /* South African flag green */
}

.sa-accent-gold {
    color: #FFB81C; /* South African flag gold/yellow */
}

.sa-accent-red {
    color: #E03C31; /* South African flag red */
}

.sa-accent-blue {
    color: #001489; /* South African flag blue */
}

/* Card Styling */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Job Cards */
.job-card {
    border-left: 4px solid var(--primary);
}

.remote-job-card {
    border-left: 4px solid var(--success);
}

/* South African Themed Category Cards */
.job-categories {
    position: relative;
    background-color: #fafafa;
}

.sa-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h10v10H0zm10 10h10v10H10zm10 10h10v10H20zm10 10h10v10H30zm10 10h10v10H40z' fill='%23007A4D' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.category-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    z-index: 1;
}

.category-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.sa-card-blue:before {
    background-color: var(--sa-blue);
}

.sa-card-green:before {
    background-color: var(--sa-green);
}

.sa-card-gold:before {
    background-color: var(--sa-yellow);
}

.sa-card-red:before {
    background-color: var(--sa-red);
}

.category-card:hover:before {
    height: 8px;
}

.category-card:hover {
    background-color: white;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.03);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    background-color: rgba(0,0,0,0.05);
}

.view-tag {
    color: var(--primary);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: inline-block;
}

.category-card:hover .view-tag {
    opacity: 1;
    transform: translateY(0);
}

.sa-accent-bar {
    width: 6px;
    height: 40px;
    background: linear-gradient(to bottom, 
        var(--sa-blue) 0%, 
        var(--sa-green) 33.3%, 
        var(--sa-yellow) 66.6%, 
        var(--sa-red) 100%);
    border-radius: 4px;
}

.sa-accent-diamond {
    width: 30px;
    height: 30px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, 
        var(--sa-blue) 0%, 
        var(--sa-green) 35%, 
        var(--sa-yellow) 65%, 
        var(--sa-red) 100%);
    border-radius: 4px;
}

/* Featured jobs section styling */
.featured-by-province {
    background-color: #fcfcfc;
    position: relative;
    overflow: hidden;
}

.sa-featured-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23007A4D' fill-opacity='0.02'/%3E%3C/svg%3E");
    z-index: 0;
}

.sa-province-map-mini {
    position: absolute;
    right: 0;
    top: 0;
    width: 200px;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M65,16 L45,33 L60,48 L42,55 L40,73 L58,92 L46,117 L63,125 L93,115 L121,129 L134,113 L160,113 L170,100 L150,83 L164,71 L151,57 L169,40 L156,25 L137,27 L124,10 L98,25 L79,16 L65,16 Z' fill='none' stroke='%23007A4D' stroke-width='2' stroke-opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0.6;
}

.province-feature-header {
    background-color: rgba(248,249,250,0.9);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sa-gauteng-card:before, 
.sa-western-cape-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: 5px 0 0 5px;
}

.sa-gauteng-card:before {
    background-color: var(--sa-blue);
}

.sa-western-cape-card:before {
    background-color: var(--sa-green);
}

.ad-highlight-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.sa-diagonal-stripes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        var(--sa-blue),
        var(--sa-blue) 10px,
        var(--sa-red) 10px,
        var(--sa-red) 20px,
        var(--sa-yellow) 20px,
        var(--sa-yellow) 30px,
        var(--sa-green) 30px,
        var(--sa-green) 40px
    );
}

/* South African Themed Trending Tags */
.trending-tags-wrapper {
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--sa-green);
}

.sa-tag-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23007a4d' fill-opacity='0.03'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}

.sa-tag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--sa-yellow);
    color: #333;
    font-size: 1.2rem;
    margin-right: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.sa-trending-tags-container {
    z-index: 1;
    position: relative;
}

.sa-trending-tags-container .tag-cloud-link {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.35rem 0.75rem;
    background-color: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 30px;
    font-size: 0.85rem !important;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sa-trending-tags-container .tag-cloud-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--sa-blue), var(--sa-green), var(--sa-yellow), var(--sa-red));
    transform: translateY(3px);
    transition: transform 0.3s ease;
}

.sa-trending-tags-container .tag-cloud-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #fff;
}

.sa-trending-tags-container .tag-cloud-link:hover:before {
    transform: translateY(0);
}

/* South African themed job sectors styling */
.sa-geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23000000' fill-opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.job-sector-card {
    position: relative;
    overflow: hidden;
}

.job-sector-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: 5px 0 0 5px;
}

.job-sector-card.sa-card-blue:before {
    background-color: var(--sa-blue);
}

.job-sector-card.sa-card-green:before {
    background-color: var(--sa-green);
}

.job-sector-card.sa-card-yellow:before {
    background-color: var(--sa-yellow);
}

.job-sector-card.sa-card-red:before {
    background-color: var(--sa-red);
}

.job-sector-card .card-header {
    background-color: rgba(248,249,250,0.9);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.job-sector-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.03);
    color: var(--primary);
    font-size: 1.2rem;
}

/* Additional provinces styling */
.province-mini-card {
    position: relative;
    overflow: hidden;
}

.province-mini-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.province-mini-card.sa-card-yellow:before {
    background-color: var(--sa-yellow);
}

.province-mini-card.sa-card-red:before {
    background-color: var(--sa-red);
}

.province-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.03);
    color: var(--primary);
    font-size: 1rem;
}

/* SEO content section South African theme */
.seo-content {
    background-color: #f9f9f9;
    position: relative;
}

.sa-content-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23007a4d' fill-opacity='0.02' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.sa-content-card {
    background-color: white;
    z-index: 1;
    position: relative;
}

.sa-flag-accent-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, 
        var(--sa-blue) 0%, var(--sa-blue) 25%, 
        var(--sa-green) 25%, var(--sa-green) 50%, 
        var(--sa-yellow) 50%, var(--sa-yellow) 75%, 
        var(--sa-red) 75%, var(--sa-red) 100%);
}

.sa-shield-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--sa-blue);
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.sa-content-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--secondary);
}

.sa-content-divider::before,
.sa-content-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.sa-content-divider::before {
    margin-right: .5em;
}

.sa-content-divider::after {
    margin-left: .5em;
}

.sa-feature-box {
    background-color: rgba(248,249,250,0.6);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--sa-green);
}

.sa-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sa-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--sa-green);
    color: white;
    font-size: 0.8rem;
    margin-right: 12px;
}

.ad-container-subtle {
    background-color: rgba(248,249,250,0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px dashed rgba(0,0,0,0.1);
}

/* Province Cards with South African Themed Elements */
.provinces-section {
    position: relative;
    background-color: #f9f9f9;
    overflow: hidden;
}

.sa-flag-accent-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, 
        var(--sa-green) 16.6%, 
        var(--sa-yellow) 16.6%, 33.3%, 
        var(--sa-red) 33.3%, 50%, 
        var(--sa-blue) 50%, 66.6%, 
        var(--sa-black) 66.6%, 83.3%, 
        var(--sa-green) 83.3%);
}

.sa-map-bg-element {
    position: absolute;
    top: 20px;
    right: 0;
    width: 300px;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M180,50 C120,80 150,180 100,200 C60,215 40,280 80,310 C120,340 220,320 260,280 C300,240 310,180 290,130 C270,80 220,30 180,50 Z' fill='none' stroke='%23007A4D' stroke-width='1.5' stroke-opacity='0.1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.province-card {
    background-color: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
}

.province-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.province-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: height 0.3s ease;
}

.province-card:hover .province-icon-bg {
    height: 8px;
}

.province-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    font-size: 1.5rem;
}

/* South African flag color backgrounds */
.sa-blue-bg {
    background-color: var(--sa-blue);
}

.sa-green-bg {
    background-color: var(--sa-green);
}

.sa-yellow-bg {
    background-color: var(--sa-yellow);
}

.sa-red-bg {
    background-color: var(--sa-red);
}

.remote-card {
    background-color: rgba(25, 135, 84, 0.05);
}

/* Search Form with South African Elements */
.sa-job-search {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.search-section {
    margin-top: -30px;
    background-color: #f8f9fa;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.97));
}

/* South African map background */
.sa-map-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M180,50 C120,80 150,180 100,200 C60,215 40,280 80,310 C120,340 220,320 260,280 C300,240 310,180 290,130 C270,80 220,30 180,50 Z' fill='none' stroke='%23007A4D' stroke-width='1' stroke-opacity='0.15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-size: 40%;
    opacity: 0.7;
    pointer-events: none;
}

.search-card {
    overflow: hidden;
    border-top: 4px solid var(--warning) !important;
}

.search-form .input-group {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.search-form .form-control,
.search-form .form-select {
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
    height: calc(3rem + 2px);
}

.search-form .btn-primary {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-weight: 600;
}

.province-quick-links .badge {
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    font-weight: normal;
}

.province-quick-links .badge:hover {
    background-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Stats Section with South African Elements */
.stats {
    position: relative;
    overflow: hidden;
    background-color: #fcfcfc;
}

/* South African flag-inspired accent strip */
.sa-flag-accent-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, 
        var(--sa-blue) 16.6%, 
        var(--sa-red) 16.6%, 33.3%, 
        var(--sa-yellow) 33.3%, 50%, 
        var(--sa-green) 50%, 66.6%, 
        var(--sa-black) 66.6%, 83.3%, 
        var(--sa-green) 83.3%);
}

.stats .card .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

/* South African card accent colors */
.sa-card-blue {
    border-top: 4px solid var(--sa-blue) !important;
}

.sa-card-green {
    border-top: 4px solid var(--sa-green) !important;
}

.sa-card-gold {
    border-top: 4px solid var(--sa-yellow) !important;
}

.sa-card-red {
    border-top: 4px solid var(--sa-red) !important;
}

.sa-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
}

/* Badge Styling */
.badge {
    font-weight: 500;
}

/* Job Meta */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Trending Tags */
.sa-trending-tags .btn {
    transition: all 0.2s ease;
}

.sa-trending-tags .btn:hover {
    background-color: #6c757d;
    color: white;
}

/* Ad Placeholders */
.ad-placeholder {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%);
    background-size: 20px 20px;
}

.large-ad .ad-placeholder {
    min-height: 300px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats .card .display-4 {
        font-size: 2rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    body.dark-mode .card {
        background-color: #1e1e1e;
        border-color: #2d2d2d;
    }
    
    body.dark-mode .text-dark {
        color: #e0e0e0 !important;
    }
    
    body.dark-mode .bg-light {
        background-color: #1e1e1e !important;
    }
    
    body.dark-mode .text-muted {
        color: #aaaaaa !important;
    }
}
