/*
Theme Name: Job Portal Theme
Theme URI: https://example.com/job-portal
Author: Antigravity
Author URI: https://example.com
Description: A modern, responsive Job Portal theme based on Bootstrap, with integrated advertisement spaces.
Version: 1.0.0
Text Domain: job-portal
*/

body {
    background-color: #f8f9fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Ad Layout Styles */
.ad-banner-top, .ad-banner-bottom {
    background-color: #dbe4ff;
    border: 1px dashed #748ffc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    margin: 20px 0;
    color: #4c6ef5;
    font-weight: 600;
}

.ad-skyscraper {
    background-color: #dbe4ff;
    border: 1px dashed #748ffc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #4c6ef5;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    height: 100%;
}

.ad-skyscraper .ad-badge {
    background-color: #5c7cfa;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* Job Cards */
.job-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: rgba(92, 124, 250, 0.3);
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #4c6ef5;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.job-card:hover::before {
    transform: scaleY(1);
}

.job-card .card-body {
    padding: 24px;
}

.job-meta-item {
    font-size: 0.9rem;
    color: #6c757d;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.job-meta-item i {
    margin-right: 5px;
}

.badge-soft-primary {
    background-color: #e7f5ff;
    color: #228be6;
}

.badge-soft-success {
    background-color: #ebfbee;
    color: #40c057;
}

.badge-soft-warning {
    background-color: #fff9db;
    color: #fcc419;
}

.badge-soft-danger {
    background-color: #ffe3e3;
    color: #fa5252;
}

/* Layout Utilities */
.main-content-area {
    padding: 0 15px;
}

.navbar-brand {
    font-weight: 700;
    color: #4c6ef5 !important;
}

.navbar-brand i {
    margin-right: 8px;
}

.interested-btn {
    border-color: #5c7cfa;
    color: #5c7cfa;
    font-weight: 600;
    padding: 10px;
}

.interested-btn:hover {
    background-color: #5c7cfa;
    color: white;
}

/* In-Feed Ads styling */
.in-feed-ad-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.in-feed-ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.ad-content-wrapper img,
.ad-content-wrapper video {
    max-width: 100%;
    max-height: 350px;
    height: auto;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.ad-content-wrapper iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Remove Gutenberg default margins inside the ad */
.ad-content-wrapper figure,
.ad-content-wrapper p {
    margin: 0;
    padding: 0;
}

/* Ensure WordPress embeds fit the container */
.ad-content-wrapper .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.ad-content-wrapper .wp-block-embed__wrapper iframe,
.ad-content-wrapper .wp-block-embed__wrapper object,
.ad-content-wrapper .wp-block-embed__wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* WordPress Pagination Styling (Bootstrap 5 Compatible) */
ul.page-numbers {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}
ul.page-numbers li {
    margin: 0 3px;
}
ul.page-numbers li a,
ul.page-numbers li span {
    position: relative;
    display: block;
    padding: 0.5rem 0.85rem;
    color: #5c7cfa;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
ul.page-numbers li span.current {
    z-index: 3;
    color: #fff;
    background-color: #5c7cfa;
    border-color: #5c7cfa;
    box-shadow: 0 2px 5px rgba(92, 124, 250, 0.3);
}
ul.page-numbers li a:hover {
    color: #4b66d6;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}
