/* Theme Name: ShakirJobs Advanced Theme
Theme URI: https://shakirjobs.com/
Description: Fast, fully responsive, and highly optimized recruitment and career brand theme for ShakirJobs.com. Fully compatible with WordPress 7.0+ and PHP 8.3+.
Author: ShakirJobs Web Team
Author URI: https://shakirjobs.com
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: shakirjobs
*/

/* Website Overflow aur Extra Space Fix */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Container Proper Sizing */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

/* 🔹 Tamam Tables ke liye Uniform Design (Image 7 Style) */
.entry-content table, .post-content table, table.wp-block-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

/* 🔹 Table Headers (agar TH use hua ho) */
.entry-content table th, .post-content table th, table.wp-block-table th {
    background-color: #1cb36f !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    text-align: left !important;
    font-weight: 600 !important;
    border: 1px solid #cbd5e1 !important;
}

/* 🔹 Table Cells Default Style */
.entry-content table td, .post-content table td, table.wp-block-table td {
    padding: 12px 15px !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
    background-color: #ffffff !important;
    font-size: 14px;
}

/* 🔹 Pehli Column (Pink/Magenta Shade jesa screenshot mein hai) */
.entry-content table tr td:first-child, 
.post-content table tr td:first-child,
.wp-block-table tr td:first-child {
    background-color: #db2777 !important; /* Pink / Magenta Shade */
    color: #ffffff !important;
    font-weight: 600 !important;
    width: 35%;
    border-color: #be185d !important;
}

/* 🔹 Row ke andar agar pehla element th ho (Info tables ke liye) */
.entry-content table tr th:first-child, 
.post-content table tr th:first-child {
    background-color: #db2777 !important;
    color: #ffffff !important;
}

/* 🔹 Alternating rows balance karne ke liye */
.entry-content table tr:nth-child(even) td:not(:first-child), 
.post-content table tr:nth-child(even) td:not(:first-child) {
    background-color: #f9fafb !important;
}

/* Mobile aur Laptop Responsive Fixes */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .col-xs-12, .col-sm-12, .col-md-8, .col-md-4 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.entry-content ul li, .post-content ul li {
    list-style: none;
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
}

.entry-content ul li::before, .post-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #1cb36f;
    border-radius: 50%;
}

.wp-block-image img {
    vertical-align: bottom;
    border: 6px solid;
    border-image: repeating-linear-gradient(red, yellow 10%, green 20%) 60;
    padding: 0px;
    box-shadow: black 0 5px 20px;
}

/* Sidebar Widget Headings matching theme brand */
#secondary .widget .widget-title, 
#secondary .widget h1:first-child, 
#secondary .widget h2:first-child, 
#secondary .widget h3:first-child, 
#secondary .widget h4:first-child, 
#secondary .widget h5:first-child, 
#secondary .widget h6:first-child {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: var(--buttonPadding, 12px 15px);
    border: 1px solid #e2e8f0;
    color: #1e293b;
    background: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.sidebar-wrap-main {
    height: auto !important;
    border-radius: var(--box-radius);
    box-shadow: var(--box-shadow);
    padding: var(--padding);
}

/* 🔹 Clean Pagination for Theme */
.pagination, .shakirjobs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    width: 100%;
}

.pagination .page-numbers, .shakirjobs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover, .shakirjobs-pagination .page-numbers:hover {
    background: #f1f5f9;
    color: #1cb36f;
    border-color: #1cb36f;
}

.pagination .page-numbers.current, .shakirjobs-pagination .page-numbers.current {
    background: #1cb36f;
    color: #ffffff !important;
    border-color: #1cb36f;
    box-shadow: 0 4px 10px rgba(28, 179, 111, 0.2);
}

/* Single Page Images aur Containers Overflow Fix */
.single-post img, 
.entry-content img, 
.post-content img {
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

.single-post figure, 
.entry-content figure, 
.post-content figure,
.single-post .wp-block-image,
.entry-content .wp-block-image {
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

.single-post .entry-content div {
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
}

/* Back to Top Button Styling */
#shakirjobs-back-to-top {
    position: fixed;
    bottom: 115px;
    right: 30px;
    background: #1cb36f;
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
}

#shakirjobs-back-to-top.show-btn {
    opacity: 1;
    visibility: visible;
}

#shakirjobs-back-to-top:hover {
    background: #158f58;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 🔹 Breadcrumbs Modern Button Style Design */
.shakirjobs-breadcrumbs {
    margin: 15px 0 20px 0;
    font-size: 13px;
    font-family: inherit;
}

.shakirjobs-breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.shakirjobs-breadcrumbs ul li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #f1f5f9;
    color: #334155;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease-in-out;
}

.shakirjobs-breadcrumbs ul li a:hover {
    background-color: #1cb36f;
    color: #ffffff;
    border-color: #1cb36f;
    box-shadow: 0 4px 10px rgba(28, 179, 111, 0.25);
    transform: translateY(-1px);
}

.shakirjobs-breadcrumbs ul li.separator {
    color: #94a3b8;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.shakirjobs-breadcrumbs ul li.active span {
    display: inline-block;
    background-color: #ffffff;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .shakirjobs-breadcrumbs ul li.active span {
        max-width: 180px;
    }
}