/*
Theme Name: Sarkari Result
Theme URI: https://sarkariresult.dev
Author: Your Name
Author URI: https://sarkariresult.dev
Description: A WordPress theme for government job notifications, exam results, and career guidance
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarkari-result
Tags: blog, news, government-jobs, two-columns, three-columns, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

:root {
    --primary-color: #1976D2;
    --secondary-color: #0D47A1;
    --accent-color: #2196F3;
    --text-light: #E3F2FD;
    --text-dark: #333333;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

body {
    background-color: var(--bg-light);
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: #2980b9;
    transition: color 0.2s ease;
}

a:hover {
    color: #1976D2;
}

/* Header Styles */
.header {
    background: #2c3e50;
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo a:hover {
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    font-weight: 400;
    padding: 6px 12px;
    border-radius: 3px;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: block;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}

/* Nav Wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Header Search */
.header-search {
    margin-left: auto;
}

.header-search .search-form {
    display: flex;
    gap: 0;
}

.header-search .search-field {
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 20px 0 0 20px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s;
}

.header-search .search-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search .search-field:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    width: 250px;
}

.header-search .search-submit {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    color: white;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.header-search .search-submit:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1976D2 0%, #0d47a1 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-wrapper.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 20px;
    }
    
    .nav-links li:first-child a {
        border-left: none;
    }
    
    .header-search {
        margin: 0;
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-search .search-field {
        width: 100%;
        border-radius: 20px 0 0 20px;
    }
    
    .header-search .search-field:focus {
        width: 100%;
    }
}

/* Screen Reader Text - Accessible but visually hidden */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Search Page Styles */
.search-input-large {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.search-input-large:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.search-btn-large {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn-large:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.advanced-search-form details {
    margin-top: 20px;
}

.advanced-search-form summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px 0;
    user-select: none;
}

.advanced-search-form summary:hover {
    color: var(--secondary-color);
}

/* Popular Search Tags */
.popular-search-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #e3f2fd;
    color: var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.popular-search-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

/* Category Grid */
.category-grid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.category-grid-item:hover {
    background: #e3f2fd;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-count {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .search-input-large {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .search-btn-large {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Quick Links Section */
.quick-links-section {
    margin: 1rem 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.quick-link-item:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #1976d2;
}

.quick-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.quick-link-item span:last-child {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* About Tools Section */
.about-tools {
    margin: 3rem 0;
}

.about-content {
    line-height: 1.8;
    font-size: 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: var(--text-dark);
}

.about-content p:first-child {
    font-size: 1.1rem;
    font-weight: 500;
}

.about-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-content h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.about-content h3:first-of-type {
    margin-top: 1rem;
}

/* Content Columns */
.content-columns {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Section Container */
.section-container {
    background: white;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 0px;
    overflow: hidden;
}

.section-header {
    color: white;
    padding: 12px 20px;
    text-align: center;
    background: #2196F3;
}

.section-header h2 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.widget .section-header h2 {
    color: white;
}

/* Footer */
.footer {
    background: #34495e;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .content-columns {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .quick-link-item {
        padding: 10px;
    }
    
    .quick-icon {
        font-size: 1.2rem;
    }
}
