/*
Theme Name: Sarkari Result
Theme URI: https://sarkariresult.com
Author: Your Name
Author URI: https://example.com
Description: A professional WordPress theme for Sarkari Result job notifications and updates
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarkari-result
Domain Path: /languages
*/

:root {
  --primary-blue: #2563EB;
  --primary-blue-dark: #1E40AF;
  --accent-cyan: #06B6D4;
  --accent-purple: #A855F7;
  --accent-pink: #EC4899;
  --white: #FFFFFF;
  --bg-light: #F8FAFC;
  --text-dark: #0F172A;
  --text-light: #64748B;
  --border-color: #E2E8F0;
  --shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
  --shadow-lg: 0 10px 40px rgba(37, 99, 235, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: linear-gradient(135deg, var(--bg-light) 0%, #F1F5F9 100%);
  min-height: 100vh;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
  color: var(--accent-cyan);
  transform: translateX(2px);
}

/* Header Styles */
.site-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-title a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.site-title a:hover {
  opacity: 0.9;
  transform: none;
}

.site-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 5px;
}

.site-branding {
  flex: 1;
}

.search-form {
  display: flex;
  gap: 5px;
}

.search-form input {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  width: 200px;
  font-size: 13px;
  background-color: rgba(255, 255, 255, 0.95);
}

.search-form button {
  padding: 8px 15px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary-blue) 100%);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.search-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Navigation */
.site-navigation {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  padding: 0;
  margin-top: 5px;
}

.navigation-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.site-navigation li {
  margin: 0;
}

.site-navigation a {
  display: block;
  padding: 12px 15px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.site-navigation a:hover,
.site-navigation li.current-menu-item > a {
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  color: var(--white);
}

.site-navigation li:last-child a {
  border-right: none;
}

/* Main Content Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

/* Latest Posts Grid - 8 Items in 2 Rows (4 Columns) */
.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.latest-post-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

.latest-post-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.latest-post-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.latest-post-title a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s;
}

.latest-post-title a:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}

.latest-post-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.category-badge-small {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: var(--white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* Category Sections Grid - 6 Items in 2 Rows (3 Columns) */
.category-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.category-section-box {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-section-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.category-section-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  color: var(--white);
  padding: 15px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

.category-section-content {
  padding: 15px;
  min-height: 250px;
}

.category-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-post-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.category-post-item:last-child {
  border-bottom: none;
}

.category-post-item a {
  color: var(--primary-blue);
  text-decoration: none;
  flex: 1;
  transition: all 0.3s;
}

.category-post-item a:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}

.category-post-date {
  color: var(--text-light);
  font-size: 11px;
  white-space: nowrap;
}

.no-posts-section {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-light);
}

.btn-small {
  padding: 8px 15px;
  font-size: 13px;
  display: inline-block;
}

/* Category Filter Section */
.category-filter-section {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white), var(--bg-light));
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  display: none;
}

.category-filter-section label {
  font-weight: 600;
  margin-right: 10px;
  color: var(--text-dark);
}

.category-filter-section select {
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  background-color: var(--white);
  color: var(--text-dark);
  transition: all 0.3s;
}

.category-filter-section select:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Section Styling */
.section-box {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
  transition: all 0.3s;
}

.section-box:hover {
  box-shadow: var(--shadow-lg);
}

.section-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  color: var(--white);
  padding: 12px 15px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

.section-content {
  padding: 15px;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item a {
  color: var(--primary-blue);
  transition: all 0.3s;
}

.post-item a:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}

.post-date {
  color: var(--text-light);
  font-size: 11px;
  margin-left: 10px;
}

/* Category Badges */
.category-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: var(--white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--text-dark), #1E293B);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.view-more-btn {
  width: 100%;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1E293B 100%);
  color: var(--white);
  padding: 30px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  border-top: 3px solid var(--primary-blue);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-content p {
  margin: 10px 0;
}

.footer-content a {
  color: var(--accent-cyan);
}

.footer-content a:hover {
  color: var(--white);
}

/* Loading State */
.loading {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
}

.loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .latest-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-sections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .latest-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-sections-grid {
    grid-template-columns: 1fr;
  }

  .site-navigation ul {
    flex-direction: column;
  }

  .site-navigation a {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .site-navigation li:last-child a {
    border-bottom: none;
  }

  .search-form input {
    width: 100%;
  }

  .header-top {
    flex-direction: column;
    gap: 15px;
  }
}

/* Posts Page Styles */
.posts-container {
  background-color: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  min-height: 400px;
  border: 1px solid var(--border-color);
}

.post-card {
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.post-card:last-child {
  border-bottom: none;
}

.post-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.post-excerpt {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.5;
}

.no-posts {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
