/*
Theme Name: GP Result Theme
Theme URI: https://gpresult.com
Description: Professional WordPress theme with advanced header customization for job portal
Version: 1.0.0
Author: GP Result
Author URI: https://gpresult.com
Text Domain: gp-result
Domain Path: /languages
*/

/* Reset & Base Styles */
:root{
  --job-primary:#10b981;
  --job-primary-dark:#059669;
  --job-bg:#ffffff;
  --job-light:#f0fdfa;
  --job-border:#e5e7eb;
  --job-text:#0f172a;
  --job-muted:#64748b;
  --job-radius:14px;
  --job-shadow:0 10px 30px rgba(0,0,0,.08);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

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

/* Header Styles */
.site-header {
    background: #1a237e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    flex: 0 0 auto;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo .site-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    color: #fff;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-navigation ul li a:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Sub Menu */
.main-navigation ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.main-navigation ul li:hover > ul.sub-menu {
    display: block;
}

.main-navigation ul li ul.sub-menu li a {
    color: #333;
    padding: 10px 20px;
    border-radius: 0;
}

.main-navigation ul li ul.sub-menu li a:hover {
    background: #f5f5f5;
}

/* Search Icon */
.header-search {
    flex: 0 0 auto;
}

.search-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    transform: scale(1.1);
}

/* Full Screen Search */
.fullscreen-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 126, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.fullscreen-search.active {
    display: flex;
}

.search-container {
    max-width: 600px;
    width: 90%;
    position: relative;
}

.search-container input[type="search"] {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: 24px;
    border: none;
    border-radius: 50px;
    outline: none;
}

.search-container button[type="submit"] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .site-logo {
        order: 1;
    }
    
    .header-search {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    
    .main-navigation {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 9999;
    }
    
    .main-navigation.active {
        max-height: 100%;
        margin-top: 0px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
    }
    
    .main-navigation ul li ul.sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        display: none;
    }
    
    .main-navigation ul li.menu-item-has-children > a::after {
        content: ' ▼';
        font-size: 12px;
    }
}

/* Content Area */
.site-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Footer */
.site-footer {
    background: #1a237e;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

/* Sidebar */
.sidebar {
    padding-top: 20px;
}

.sidebar .widget {
    margin-bottom: 30px;
}

.sidebar .widget-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a237e;
}

/* Post Styles */
article {
    padding: 3px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.entry-title a {
    color: #1a237e;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #3f51b5;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-thumbnail {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.entry-content {
    line-height: 1.8;
    margin-bottom: 20px;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.read-more {
    display: inline-block;
    padding: 10px 25px;
    background: #1a237e;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #3f51b5;
}

.tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags a {
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tags a:hover {
    background: #1a237e;
    color: #fff;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #f0f0f0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #1a237e;
    color: #fff;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.comment-content {
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .site-content {
        margin: 20px auto;
    }
    
    article {
        padding: 20px;
    }
    
    .entry-title {
        font-size: 22px;
    }
    
    .entry-meta {
        gap: 15px;
        font-size: 13px;
    }
}


/* ===== SIDEBAR LAYOUT ===== */
.job-sidebar{
    background:#ffffff;
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.job-sidebar .widget{
    margin-bottom:24px;
}

.job-sidebar .widget:last-child{
    margin-bottom:0;
}
.job-sidebar .widget-title{
    font-size:16px;
    font-weight:700;
    padding:10px 14px;
    border-radius:10px;
    margin-bottom:14px;
    color:#fff;
    line-height:1.2;
}

.job-main-content{
    min-width:0; /* IMPORTANT for flex layouts */
}

.job-sidebar{
    flex-shrink:0;
}
.job-sidebar.sticky{
    position:sticky;
    top:90px; /* header ke neeche */
    align-self:flex-start;
}






.job-layout,
.site-layout{
    display:flex;
    gap:24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* RIGHT SIDEBAR */
.sidebar-right{
    flex-direction:row;
}

/* LEFT SIDEBAR */
.sidebar-left{
    flex-direction:row-reverse;
}

/* NO SIDEBAR */
.sidebar-none .job-sidebar,
.sidebar-none .site-sidebar{
    display:none;
}

.job-main-content,
.site-main-content{
    flex:1;
    min-width: 0;
}

.job-sidebar,
.sidebar{
    width:320px;
    flex-shrink: 0;
}

/* Job Sidebar Specific Styles */
.job-sidebar .widget,
.sidebar .widget {
    background: #fff;
    border-radius: 12px;
    padding: 17px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	border: 1px solid #e3dada;
}

.job-sidebar .widget-title,
.sidebar .widget-title {
    background: var(--job-primary, #10b981);
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
}

/* STICKY */
.job-sidebar.sticky{
    position:sticky;
    top:90px;
    align-self: flex-start;
}

/* MOBILE */
@media(max-width:991px){
    .job-layout,
    .site-layout{
        flex-direction:column;
        padding: 10px;
        gap: 20px;
    }
    
    .job-sidebar,
    .sidebar{
        width:100% !important;
        max-width: 100%;
        position:relative !important;
        top:auto !important;
        order: 2;
        display: block !important;
        visibility: visible !important;
    }
    
    .job-main-content,
    .site-main-content {
        width: 100%;
        order: 1;
    }
    
    /* Widget adjustments for mobile */
    .job-sidebar .widget,
    .sidebar .widget {
        margin-bottom: 15px;
    }
    
    .job-sidebar .widget-title,
    .sidebar .widget-title {
        font-size: 16px;
    }
}

@media(max-width: 768px) {
    .job-layout,
    .site-layout {
        padding: 5px;
        gap: 15px;
    }
    
    .site-content {
        padding: 0 10px;
    }
}
/* ======================================================
   SIDEBAR POST
   ====================================================== */
.sidebar-post-item{
    gap:12px;
    padding:10px 0;
    border-bottom:1px solid #f0f0f0;
}

.sidebar-post-item:last-child{
    border-bottom:none;
}

.sidebar-post-item h4{
    font-size:14px;
    line-height:1.4;
    margin:0;
}



   
   
   
.sidebar-post-list{
    padding:10px;
}
.sidebar-post-item{
    padding:12px 0;
    border-bottom:1px solid #eee;
}
.sidebar-post-item:last-child{
    border-bottom:none;
}
.sidebar-post-item h4{
    margin:0 0 6px;
    font-size:15px;
}
.sidebar-post-item .meta{
    font-size:13px;
    color:#666;
}
.sidebar-post-item .status.expired{ color:#dc2626; }
.sidebar-post-item .status.updated{ color:#2563eb; }
.sidebar-post-item .status.new{ color:#16a34a; }

/* ======================================================
   SIDEBAR CATEGORY 1
   ====================================================== */
   .jobs-cat-list li{
    display:flex;
    align-items:center;
    gap:6px;
}

.jobs-cat-icon-grid{
    margin-top:10px;
}
   
   
   
.jobs-cat-list{
    list-style:none;
    margin:0;
    padding:10px;
}
.jobs-cat-item{
    padding:8px 0;
    font-size:14px;
}
.jobs-cat-item i{
    color:#f87171;
    margin-right:6px;
}
.jobs-cat-item span{
    color:#22c1dc;
}
.hidden-cat{
    display:none;
}
.hidden-cat.show{
    display:block;
}
.jobs-cat-toggle{
    padding:10px;
    text-align:left;
}
.jobs-cat-toggle a{
    font-weight:600;
    color:#22c1dc;
}
/* ======================================================
   SIDEBAR CATEGORY 2
   ====================================================== */

.jobs-cat-icon-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}
.jobs-cat-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:8px;
    padding:12px;
    text-align:center;
    transition:.2s;
}
.jobs-cat-card:hover{
    box-shadow:0 6px 18px rgba(0,0,0,.08);
}
.jobs-cat-card .icon{
    font-size:26px;
    margin-bottom:6px;
    color:#16a34a;
}
.jobs-cat-card .emoji{
    font-size:26px;
}
.jobs-cat-card .name{
    font-weight:600;
    font-size:14px;
}
.jobs-cat-card .count{
    font-size:12px;
    color:#666;
}