/*
Theme Name: WP Job Result Lite
Theme URI: https://wpcodequill.com/product/wp-sarkari-result
Author: WPCodeQuill
Author URI: https://wpcodequill.com
Description: A lightweight, responsive Sarkari Result style WordPress theme designed for job portals, education news, and admit card websites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-job-result-lite
Copyright (c) 2025 WPCodeQuill.
Tags: one-column, custom-colors, custom-menu, featured-images, translation-ready, blog, education, news
*/

/* =========================================
   1. VARIABLES & RESET
========================================= */
:root {
    --primary-color: #AB0000;    /* Dark Red */
    --secondary-color: #000080;  /* Navy Blue */
    --header-pink: #B91E52;      /* Sarkari Pink */
    --nav-black: #000000;        /* Black */
    --link-color: #0000EE;       /* Standard Blue Link */
    --link-hover: #FF0000;       /* Red Hover */
    --text-white: #ffffff;
    --bg-gray: #f4f4f4;
}

body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background-color: var(--bg-gray); color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 10px; box-sizing: border-box; }
a { text-decoration: none; color: var(--link-color); font-weight: bold; }
a:hover { text-decoration: underline; color: var(--link-hover); }

/* =========================================
   2. HEADER STYLES
========================================= */
.site-header { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.sarkari-header-pink { background-color: var(--header-pink); padding: 15px 0; border-bottom: 2px solid #880e4f; color: var(--text-white); position: relative; width: 100%; }
.header-content-wrapper { display: flex; align-items: center; justify-content: center; position: relative; min-height: 110px; }

/* Logo */
.logo-wrapper { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); z-index: 10; }
.custom-logo { height: 95px !important; width: auto !important; border-radius: 50%; border: 3px solid #fff; display: block; }

/* Title */
.title-wrapper { text-align: center; width: 100%; padding: 0 100px; }
.sarkari-title { font-family: 'Times New Roman', serif; font-size: 46px; font-weight: bold; color: #ffffff; margin: 0; text-transform: uppercase; line-height: 1.1; text-shadow: 2px 2px 4px rgba(0,0,0,0.4); }
.sarkari-domain { font-family: Arial, sans-serif; font-size: 18px; font-weight: bold; color: #ffffff; margin: 5px 0 0 0; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   3. DESKTOP NAVIGATION (The Part You Want Fixed)
   This runs by default on computers.
========================================= */
.sarkari-navbar {
    background-color: var(--nav-black);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    position: relative;
    width: 100%;
}

/* 1. Hide Toggle Button on Desktop */
.menu-toggle {
    display: none;
}

/* 2. Horizontal Menu List */
.menu-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;       /* This makes it horizontal */
    justify-content: center;
    flex-wrap: wrap;
}

.menu-ul li {
    position: relative;
    border-right: 1px solid #555;
}
.menu-ul li:first-child { border-left: 1px solid #555; }

.menu-ul li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}
.menu-ul li a:hover { background-color: #333; color: #ffeb3b; }

/* Desktop Sub Menu */
.menu-ul .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background-color: #000; border: 1px solid #333; z-index: 999; padding: 0; list-style: none; }
.menu-ul li:hover > .sub-menu { display: block; }
.menu-ul .sub-menu li { width: 100%; border-bottom: 1px solid #333; text-align: left; border-right: none; border-left: none; }
.menu-ul .sub-menu li a { font-size: 14px; padding: 10px 15px; }


/* =========================================
   WORDPRESS STANDARD CLASSES (Required)
   ========================================= */

/* Alignment */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}
.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}
.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}
.alignwide {
    max-width: 100%;
}
.alignfull {
    max-width: 100%;
}

/* Captions */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 5px;
    text-align: center;
}
.wp-caption img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
.wp-caption-text {
    text-align: center;
    font-size: 0.9em;
    margin-top: 0.5em;
    color: #666;
}
.gallery-caption {
    font-size: 0.8em;
    color: #666;
}

/* Sticky Post */
.sticky {
    background-color: #fffff0; /* Light yellow to highlight sticky posts */
    border: 1px solid #eee;
}

/* Author Highlight */
.bypostauthor {
    border-left: 3px solid #AB0000; /* Sarkari Red highlight */
    padding-left: 10px;
}

/* =========================================
   4. SEARCH & LAYOUT
========================================= */
.sarkari-search-wrapper { background: #f1f1f1; padding: 15px; border-bottom: 1px solid #ccc; text-align: center; }
.sarkari-search-form { display: flex; justify-content: center; max-width: 600px; margin: 0 auto; }
.sarkari-search-input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px 0 0 4px; font-size: 16px; outline: none; }
.sarkari-search-submit { padding: 10px 20px; background: var(--primary-color); color: #fff; border: none; cursor: pointer; font-weight: bold; border-radius: 0 4px 4px 0; transition: background 0.3s; }
.sarkari-search-submit:hover { background: #880e4f; }

/* Social Buttons */
.social-btn-bar { display: flex; justify-content: center; gap: 10px; margin: 15px 0; flex-wrap: wrap; }
.social-btn { padding: 10px 20px; border-radius: 5px; color: #fff !important; font-weight: bold; font-size: 14px; text-align: center; text-decoration: none; display: inline-block; min-width: 140px; transition: transform 0.2s; }
.social-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-wa { background: #25D366; } .btn-fb { background: #1877F2; } .btn-tw { background: #000000; } .btn-inst { background: #E1306C; }

/* Grid Boxes */
.colored-box-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 30px; }
.color-box-item { display: flex; align-items: center; justify-content: center; text-align: center; padding: 15px 10px; min-height: 50px; color: #fff !important; font-weight: bold; font-size: 15px; border-radius: 4px; text-decoration: none; line-height: 1.3; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.color-box-item:hover { opacity: 0.9; }

/* Main Content Grid */
.sarkari-grid { display: flex; flex-wrap: wrap; margin: 0 -5px 20px; }
.grid-col { flex: 1 1 300px; margin: 5px; border: 2px solid #000; background: #fff; }
.grid-header { background: var(--primary-color); color: #fff; text-align: center; padding: 10px; font-size: 20px; font-weight: bold; }
.grid-content { padding: 10px; }
.grid-content ul { list-style: disc; padding-left: 25px; margin: 0; }
.grid-content ul li { border-bottom: 1px solid #ddd; padding: 8px 0; text-align: left; }
.grid-content ul li a { color: var(--link-color); font-weight: bold; font-size: 15px; }
.btn-view-more { display: inline-block; margin: 10px; font-weight: bold; float: right; color: var(--link-color); }

/* Footer */
.site-footer { background-color: var(--nav-black); color: #fff; text-align: center; padding: 20px 0; border-top: 4px solid var(--header-pink); margin-top: 20px; width: 100%; }
.site-footer p { margin: 5px 0; line-height: 1.5; }
.site-footer a { color: #fff; }


/* =========================================
   5. MOBILE RESPONSIVENESS (FIXED)
   Rules here ONLY apply to phones/tablets
========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. Header Changes */
    .header-content-wrapper { flex-direction: column; text-align: center; padding: 20px 0; }
    .logo-wrapper { position: static; transform: none; margin-bottom: 10px; }
    .sarkari-title { font-size: 32px; }

    /* 2. Mobile Menu Button (Show it) */
    .menu-toggle { display: block; margin: 0 auto 10px auto; }
    
    /* 3. Hide Menu List Default */
    .menu-ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: left;
        border-top: 1px solid #444;
    }
    
    /* 4. Show Menu when clicked (JS adds .active) */
    .menu-ul.active { display: flex; }
    
    .menu-ul li { width: 100%; border-right: none; border-bottom: 1px solid #444; }
    .menu-ul li:first-child { border-left: none; }
    .menu-ul li a { padding: 10px 15px; }

    /* 5. Layout Stacking */
    .colored-box-grid { grid-template-columns: repeat(2, 1fr); }
    .social-btn-bar { flex-direction: column; padding: 0 20px; }
    .social-btn { width: 100%; box-sizing: border-box; }
    .sarkari-search-input { width: 60%; }
    .sarkari-search-submit { width: 40%; }
} 

/* =========================================
   ACCESSIBILITY: Screen Reader Text
   ========================================= */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	-webkit-clip-path: none;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
/* END OF MEDIA QUERY - Do not remove this closing bracket! */