/* ============================================
   SARKARI RESULT - COMPACT DESIGN SYSTEM
   Eye-friendly, professional, responsive
   ============================================ */

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #f5e6d3;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

/* === HEADER === */
.header {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo h1 {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo p {
    font-size: 11px;
    opacity: 0.9;
}

/* === SEARCH BOX === */
.search-box {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.search-box button {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.search-box button:hover {
    background: #059669;
}

.header-right {
    display: flex;
    gap: 10px;
    font-size: 11px;
}

.header-right a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.header-right a:hover {
    opacity: 1;
}

/* === NAVIGATION === */
.nav {
    background: #2563eb;
    padding: 0;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 14px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.quick-cats {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
}

.quick-cat {
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    transition: background 0.3s;
}

.quick-cat:hover {
    background: rgba(255,255,255,0.25);
}

/* === CONTAINER === */
.container {
    max-width: 1400px;
    margin: 8px auto;
    padding: 0 10px;
}

/* === BREADCRUMB === */
.breadcrumb {
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #6b7280;
    margin: 0 4px;
}

/* === BANNER === */
.banner {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #60a5fa;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    margin-bottom: 8px;
}

.banner h2 {
    color: #1e40af;
    font-size: 16px;
    font-weight: 600;
}

/* === BOX GRID === */
.box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

/* === RELATED POSTS GRID === */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

/* === COMPACT BOX === */
.compact-box {
    background: white;
    border: 2px solid #60a5fa;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.compact-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.box-header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.box-header.red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.box-header.blue {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.box-header.green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.box-header.orange {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

.box-header.purple {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.box-header .icon {
    font-size: 12px;
}

.box-content {
    background: #f8fafc;
    padding: 8px 10px;
    flex: 1;
}

.box-content ul {
    list-style: none;
    padding: 0;
}

.box-content li {
    padding: 4px 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 12px;
}

.box-content li:last-child {
    border-bottom: none;
}

.box-content li::before {
    content: "▸";
    color: #3b82f6;
    font-size: 9px;
    position: absolute;
    left: 0;
    top: 5px;
    font-weight: bold;
}

.box-content a {
    color: #1e40af;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s;
}

.box-content a:hover {
    color: #dc2626;
    text-decoration: underline;
}

.view-more {
    text-align: center;
    padding: 6px;
    background: #e0e7ff;
    border-top: 1px solid #c7d2fe;
}

.view-more a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
}

.view-more a:hover {
    text-decoration: underline;
}

/* === BADGES === */
.badge-new {
    background: #dc2626;
    color: white;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 8px;
    font-weight: 600;
    margin-left: 4px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 5px rgba(220, 38, 38, 0.5);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.8);
    }
}

/* === POST BOX === */
.post-box {
    background: white;
    border: 2px solid #60a5fa;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 8px;
}

.post-header {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-bottom: 2px solid #60a5fa;
    padding: 10px 12px;
}

.post-header h1 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #1e40af;
}

.post-meta {
    font-size: 11px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #6b7280;
}

.post-body {
    padding: 12px;
    background: #f8fafc;
}

/* === POST CONTENT === */
.content {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.content h2,
.content h3,
.content h4 {
    color: #1e40af;
    margin: 12px 0 8px 0;
    font-weight: 600;
}

/* Remove margin from info-box headers */
.content .info-box h2 {
    margin: 0;
}

.content h2 {
    font-size: 16px;
}

.content h3 {
    font-size: 15px;
}

.content h4 {
    font-size: 14px;
}

.content p {
    margin: 8px 0;
    text-align: justify;
}

.content ul,
.content ol {
    margin: 8px 0;
    padding-left: 25px;
}

.content li {
    margin: 4px 0;
}

.content strong {
    font-weight: 600;
    color: #1e40af;
}

.content a {
    color: #3b82f6;
    text-decoration: underline;
}

.content a:hover {
    color: #dc2626;
}

/* Keep button colors intact */
.content .btn {
    color: white;
    text-decoration: none;
}

.content .btn:hover {
    color: white;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.content table th,
.content table td {
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    font-size: 14px;
}

.content table th {
    background: #eff6ff;
    font-weight: 600;
    color: #1e40af;
}

.content table td {
    background: white;
}

.content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
    margin: 10px 0;
    color: #6b7280;
    font-style: italic;
}

/* === SUMMARY BOX === */
.summary-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.summary-box h3 {
    color: #92400e;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

.summary-box p {
    color: #78350f;
    font-size: 14px;
}

/* === INFO BOX === */
.info-box {
    margin: 10px 0;
    border: 2px solid #60a5fa;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-box h2 {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

.info-box h2.red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.info-box h2.green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.info-box h2.orange {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
}

.info-table td:first-child {
    background: #f0f9ff;
    font-weight: 600;
    color: #1e40af;
    width: 35%;
    border-right: 1px solid #e5e7eb;
}

.info-table td:last-child {
    background: white;
    color: #374151;
}

/* === BUTTONS === */
.action-buttons {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.3);
}

/* === ALERTS & MESSAGES === */
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid;
    font-size: 14px;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    color: #1e40af;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
    color: #065f46;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    color: #991b1b;
}

.alert-important {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    font-weight: 600;
}

/* === NOTES === */
.note {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-left: 4px solid #64748b;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    font-size: 14px;
    color: #475569;
}

.note-title {
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

/* === AD PLACEHOLDER === */
.ad-placeholder {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    color: #6b7280;
    margin: 10px 0;
    font-size: 11px;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 12px 10px;
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
}

.footer h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    font-size: 11px;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* === ARCHIVE LIST === */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-item {
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    transition: all 0.2s;
}

.archive-item:hover {
    border-left-color: #dc2626;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transform: translateX(2px);
}

.archive-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.archive-title a {
    color: #1e40af;
    text-decoration: none;
    flex: 1;
}

.archive-title a:hover {
    color: #dc2626;
    text-decoration: underline;
}

.archive-summary {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    line-height: 1.4;
}

.archive-meta {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    gap: 12px;
}

.pagination-wrapper {
    margin: 12px 0;
    text-align: center;
}

/* === LARAVEL PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 36px;
    height: 36px;
}

.pagination a:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.pagination .active span {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border-color: #2563eb;
}

.pagination .disabled span {
    color: #9ca3af;
    background: #f3f4f6;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Pagination arrows */
.pagination svg {
    width: 12px !important;
    height: 12px !important;
    vertical-align: middle;
    display: inline-block;
}

/* Hide large arrow text, show only icon */
.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make sure icons stay small */
.pagination a svg,
.pagination span svg {
    max-width: 12px !important;
    max-height: 12px !important;
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 16px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 16px; }

.p-1 { padding: 8px; }
.p-2 { padding: 12px; }
.p-3 { padding: 16px; }

.font-bold { font-weight: 600; }
.font-normal { font-weight: 400; }

.text-sm { font-size: 13px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }

/* === MOBILE MENU === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .box-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .box-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-cats {
        display: none;
    }
    
    /* Stack sidebar below content on tablets */
    div[style*="grid-template-columns: 1fr 300px"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }

    .logo h1 {
        font-size: 20px;
    }

    .search-box {
        max-width: 100%;
        order: 3;
        width: 100%;
    }
    
    .search-box input {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .search-box button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .header-right {
        display: none;
    }
    
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .box-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stack related posts on mobile */
    .related-posts-grid {
        grid-template-columns: 1fr !important;
    }

    /* Mobile menu styles */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #2563eb;
        z-index: 1000;
    }
    
    .nav-links.mobile-menu-open {
        display: flex;
    }

    .nav-links a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 12px 15px;
        width: 100%;
    }
    
    .nav {
        position: relative;
    }
    
    /* Reduce font sizes on mobile */
    body {
        font-size: 14px;
    }
    
    .archive-meta {
        font-size: 10px !important;
    }
    
    /* Make banner text smaller */
    .banner h2 {
        font-size: 14px;
    }
    
    /* Reduce icon sizes on mobile */
    .box-header .icon {
        font-size: 11px;
    }
}

/* === SOCIAL FLOAT BUTTONS === */
.social-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.social-float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.social-float-btn .icon {
    font-size: 18px;
}

.social-float-btn .text {
    font-size: 13px;
}

.social-float-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-float-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
}

.social-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
    .social-float {
        bottom: 15px;
        right: 15px;
    }
    
    .social-float-btn {
        padding: 8px 12px;
    }
    
    .social-float-btn .text {
        display: none;
    }
    
    .social-float-btn .icon {
        font-size: 20px;
    }
}

/* === SEO SECTION === */
.seo-section {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #60a5fa;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0;
}

.seo-section h2 {
    color: #1e40af;
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.seo-section p {
    color: #374151;
    text-align: justify;
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 14px;
}

/* === FAQ SECTION === */
.faq-section {
    background: white;
    border: 2px solid #60a5fa;
    border-radius: 4px;
    padding: 15px;
    margin: 8px 0;
}

.faq-section h2 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    color: #1e40af;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.faq-item p {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}
