/*
Theme Name: Astra Child
Theme URI: https://manajobsetu.in
Author: thalluri rajeswari
Author URI: https://manajobsetu.in
Description: Child theme for Astra - Government Job Portal
Version: 1.0.0
Template: astra
Text Domain: astra-child
*/

/* Your custom CSS will go here */

/* ========== JOB PORTAL HOMEPAGE STYLES ========== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-box form {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.search-box input[type="text"] {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-box button {
    padding: 15px 35px;
    background: #ff6b35;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #ff5722;
}

/* Category Cards */
.categories-section {
    padding: 40px 0;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: #f8f9fa;
    padding: 25px 15px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.category-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.category-card span {
    font-size: 13px;
    color: #666;
}

/* Latest Jobs Section */
.latest-jobs-section {
    background: #f8f9fa;
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 28px;
    margin: 0;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.jobs-table {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.jobs-table table {
    width: 100%;
    border-collapse: collapse;
}

.jobs-table th {
    background: #f1f3f5;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
}

.jobs-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.jobs-table tr:hover {
    background: #f8f9fa;
}

.job-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.job-title a:hover {
    color: #667eea;
}

.last-date {
    font-weight: 500;
}

.urgent-date {
    color: #dc3545;
    font-weight: bold;
}

.apply-btn {
    display: inline-block;
    padding: 6px 15px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    transition: background 0.3s;
}

.apply-btn:hover {
    background: #218838;
    color: white;
}

/* Quick Links Section */
.quick-links-section {
    padding: 50px 0;
    background: white;
}

.quick-links-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quick-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: white;
    border-radius: 12px;
    transition: transform 0.3s;
}

.quick-link:hover {
    transform: translateY(-5px);
    color: white;
}

.link-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.link-title {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.link-count {
    font-size: 14px;
    opacity: 0.9;
}

/* State-Wise Section */
.state-wise-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.state-wise-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.state-card {
    background: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.state-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.state-card h3 {
    margin: 0 0 10px;
    color: #333;
}

.state-card span {
    color: #667eea;
    font-size: 14px;
}

/* Qualification Section */
.qualification-section {
    padding: 50px 0;
}

.qualification-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.qual-card {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.qual-card:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.qual-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.qual-card h4 {
    margin: 10px 0 5px;
    font-size: 16px;
    color: inherit;
}

.qual-card p {
    font-size: 13px;
    margin: 0;
    color: inherit;
    opacity: 0.8;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.newsletter-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter-box p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 15px 35px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #ff5722;
}

.privacy-note {
    font-size: 12px;
    margin-top: 15px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jobs-table th, .jobs-table td {
        padding: 10px;
        font-size: 13px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 25px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .state-grid {
        grid-template-columns: 1fr;
    }
    
    .qualification-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}







//* Taxonomy Simple Container */
.taxonomy-simple-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Taxonomy Header */
.taxonomy-header {
    background: #4A90E2;
    color: white;
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.taxonomy-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

/* Posts Count */
.posts-count {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    display: inline-block;
    margin-bottom: 20px;
}

/* Posts List */
.posts-simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.post-title-link {
    font-size: 16px;
    font-weight: 500;
    color: #2C3E50;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title-link:hover {
    color: #4A90E2;
    text-decoration: underline;
}

/* 🔴 RED COLOR LAST DATE - Main Style */
.post-last-date-red {
    font-size: 12px;
    color: #ff0000;  /* Red color */
    background: #ffe6e6;  /* Light red background */
    padding: 4px 10px;
    border-radius: 15px;
    white-space: nowrap;
    font-weight: 500;
}

/* Hover effect */
.post-item:hover .post-last-date-red {
    background: #ffcccc;
}

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

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
}

.pagination .page-numbers.current {
    background: #4A90E2;
    color: white;
}

/* No Posts */
.no-posts-found {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .taxonomy-simple-container {
        padding: 15px;
    }
    
    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-last-date-red {
        align-self: flex-start;
    }
}
}