/*
Theme Name: Sarkari Job
Description: A WordPress theme for Sarkari Job website featuring government job listings, results, admit cards, and notifications.
Version: 1.0
Author: Your Name
Text Domain: sarkari-job
*/

/* Import Tailwind CSS for styling */
@import url('https://unpkg.com/@tailwindcss/browser@4');

/* Set Arial as default font family */
body, html {
    font-family: Arial, sans-serif !important;
}

* {
    font-family: Arial, sans-serif !important;
}

/* Custom Animations */
@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Custom Styles */
.jobs li {
    color: blue;
    text-decoration: underline;
    padding-bottom: 8px;
    list-style-type: disc;
    list-style-position: inside;
    margin-left: 0;
}

.jobs li a:hover {
    color: #dc2626;
    transition: color 0.3s ease;
}

.jobs ul {
    padding-left: 0.5rem;
}

/* Read More link styling */
.jobs .card ul li:has(a[href*="category"]) {
    background-color: #fef2f2;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-top: 2px solid #f3f4f6;
    list-style-type: none;
}

/* Alternative selector for Read More links - more browser compatible */
.jobs .card ul li.mt-3 {
    list-style-type: none;
    background-color: #fef2f2;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-top: 2px solid #f3f4f6;
}

.jobs .card ul li:has(a[href*="category"]) a,
.jobs .card ul li.mt-3 a {
    color: #be185d !important;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.jobs .card ul li:has(a[href*="category"]) a:hover,
.jobs .card ul li.mt-3 a:hover {
    background-color: #be185d;
    color: white !important;
    transform: translateY(-1px);
}

/* Post Content Styling */
.post-content {
    line-height: 1.6;
}

.post-content p {
    margin-bottom: 1rem;
    color: #374151;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #be185d;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.post-content h1 { font-size: 1.875rem; }
.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content h4 { font-size: 1.125rem; }

.post-content ul,
.post-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.post-content a {
    color: #be185d;
    text-decoration: underline;
}

.post-content a:hover {
    color: #9d174d;
}

.post-content strong,
.post-content b {
    font-weight: bold;
    color: #1f2937;
}

.post-content em,
.post-content i {
    font-style: italic;
}

.post-content blockquote {
    border-left: 4px solid #be185d;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    background-color: #fdf2f8;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.post-content th,
.post-content td {
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    text-align: left;
}

.post-content th {
    background-color: #be185d;
    color: white;
    font-weight: bold;
}

.post-content tr:nth-child(even) {
    background-color: #f9fafb;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

/* Source link styling */
.post-content p:last-child {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-style: italic;
}

/* Social buttons if any are included */
.social-buttons {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
}

.social-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #be185d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.social-button:hover {
    background-color: #9d174d;
    color: white;
}

/* Category page pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #be185d;
    color: #be185d;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #be185d;
    color: white;
}

.pagination .current {
    background-color: #be185d;
    color: white;
}

p {
    text-align: center;
    padding: 10px 10px;
}

/* WordPress specific styles */
.wp-block-image {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    
    /* Mobile-specific marquee adjustments */
    .animate-marquee {
        animation: marquee 15s linear infinite;
    }
    
    /* Navbar padding adjustments for mobile */
    .bg-slate-950 {
        padding: 0.5rem 0.25rem;
    }
    
    /* Category cards mobile adjustments */
    .jobs .card {
        margin-bottom: 1rem;
    }
    
    .jobs .card ul {
        padding: 0.5rem;
    }
    
    .jobs .card li {
        font-size: 0.875rem;
        line-height: 1.4;
        padding-bottom: 0.5rem;
        list-style-type: disc;
        list-style-position: inside;
    }
    
    /* Content section text adjustments */
    .card p {
        font-size: 0.875rem;
        line-height: 1.5;
        padding: 0.5rem;
    }
    
    /* Read More link mobile adjustments */
    .jobs .card ul li:last-child a {
        font-size: 0.8rem;
        display: block;
        text-align: center;
        padding: 0.5rem;
        background-color: #fef2f2;
        border-radius: 0.25rem;
        margin-top: 0.5rem;
    }
    
    .jobs .card ul li.mt-3 {
        list-style-type: none;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .animate-marquee {
        animation: marquee 12s linear infinite;
    }
    
    /* Adjust brand section for very small screens */
    .text-2xl {
        font-size: 1.25rem !important;
    }
}

/* Additional breakpoint for better tablet experience */
@media (min-width: 768px) and (max-width: 1024px) {
    .animate-marquee {
        animation: marquee 18s linear infinite;
    }
}