/*
Theme Name: Gulf Jobs Pro - UAE & International Job Portal
Theme URI: https://example.com/gulf-jobs-pro
Author: Gulf Talent Tech
Author URI: https://example.com
Description: A modern, high-speed, SEO-optimized WordPress theme built specifically for automated UAE, GCC, and International recruitment portals. Features Schema.org JobPosting integration, mobile responsiveness, and high conversion Apply Now buttons.
Version: 2.2.0
License: GNU General Public License v2 or later
Text Domain: gulf-jobs-pro
*/

/* Core Resets */
*, ::before, ::after {
    box-sizing: border-box;
}

html {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    line-height: inherit;
    color: #1e293b;
    background-color: #f8fafc;
}

a {
    color: inherit;
    text-decoration: inherit;
}

.wp-block-post-content {
    max-width: 100% !important;
}

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

/* ==========================================================================
   UNIQUE & LUXURY PAGINATION DESIGN
   ========================================================================== */
.navigation.pagination {
    margin: 3.5rem auto 1.5rem auto;
    display: flex;
    justify-content: center;
    position: relative;
}

.navigation.pagination .screen-reader-text {
    display: none;
}

.navigation.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.85rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navigation.pagination .page-numbers:hover:not(.current) {
    background: #f1f5f9;
    color: #0284c7;
    transform: translateY(-1px);
}

.navigation.pagination .page-numbers.current {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    cursor: default;
    transform: scale(1.05);
}

.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers {
    padding: 0 1.1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.navigation.pagination .prev.page-numbers:hover,
.navigation.pagination .next.page-numbers:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Dots */
.navigation.pagination .page-numbers.dots {
    min-width: 1.5rem;
    padding: 0;
    color: #94a3b8;
    background: transparent;
    cursor: default;
}

/* ==========================================================================
   ARTICLE & EDITORIAL STYLING OPTIMIZATIONS
   ========================================================================== */
.prose br {
    display: none;
}

.how-to-apply-section a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

.prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.prose table thead tr {
    background: #0f172a;
    color: #ffffff;
}

.prose table th {
    padding: 0.85rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prose table td {
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.prose table tr:last-child td {
    border-bottom: none;
}

.prose table tr:nth-child(even) {
    background-color: #f8fafc;
}

.prose h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
}

.prose h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose ul, .prose ol {
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.prose li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

/* Responsive Image Containers */
.aspect-banner {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 standard high-converting aspect */
    overflow: hidden;
    border-radius: 0.75rem;
}

.aspect-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   GOOGLE ADSENSE SPACES / AD CONTAINERS
   ========================================================================== */
.ad-slot-container {
    width: 100%;
    margin: 2rem auto;
    text-align: center;
    overflow: hidden;
}

.ad-slot-inner {
    display: inline-block;
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.75rem;
    position: relative;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.ad-slot-inner:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.ad-slot-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.ad-slot-placeholder-text {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
}

/* ==========================================================================
   MOBILE RESPONSIVE FIXES
   ========================================================================== */
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; }
.prose { overflow-wrap: anywhere; }
.ad-slot-container ins.adsbygoogle { max-width: 100%; }

@media (max-width: 640px) {
    .navigation.pagination .nav-links { gap: 0.25rem; padding: 0.4rem 0.5rem; max-width: 100%; flex-wrap: wrap; justify-content: center; }
    .navigation.pagination .page-numbers { min-width: 2.2rem; height: 2.2rem; padding: 0 0.6rem; font-size: 0.8rem; }
    .navigation.pagination .prev.page-numbers,
    .navigation.pagination .next.page-numbers { padding: 0 0.8rem; font-size: 0.7rem; }
    .how-to-apply-section a { white-space: normal !important; width: 100%; padding: 0.9rem 1.1rem !important; font-size: 0.95rem !important; text-align: center; }
    .prose h2 { font-size: 1.2rem; }
    .prose table td, .prose table th { padding: 0.65rem 0.75rem; font-size: 0.8rem; }
    .ad-slot-inner { padding: 0.5rem; }
}

/* ==========================================================================
   STATIC PAGES (Contact, Disclaimer, Privacy, About)
   ========================================================================== */
.page-content p { margin: 0 0 1rem; }
.page-content a { color: #2563eb; text-decoration: underline; }
.page-content a:hover { color: #1d4ed8; }
.page-content h2 { border-bottom: 1px solid #e2e8f0; padding-bottom: 0.4rem; }
.page-content blockquote, .page-content .notice-box {
    background: #fffbeb; border-left: 4px solid #f59e0b; padding: 1rem 1.25rem;
    border-radius: 0.5rem; margin: 1.25rem 0; color: #78350f;
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content form p { margin-bottom: 0.9rem; }
.page-content input[type=text], .page-content input[type=email], .page-content textarea {
    width: 100%; padding: 0.7rem 0.9rem; border: 1px solid #cbd5e1; border-radius: 0.6rem;
    font-size: 0.9rem; background: #f8fafc;
}
.page-content input:focus, .page-content textarea:focus { outline: none; border-color: #2563eb; background: #fff; }
.page-content input[type=submit], .page-content button[type=submit] {
    background: #2563eb; color: #fff; font-weight: 700; padding: 0.75rem 1.5rem;
    border: 0; border-radius: 0.6rem; cursor: pointer;
}
.page-content input[type=submit]:hover { background: #1d4ed8; }
