/*
Theme Name: Sarkari Rojgar Kendra
Theme URI: https://www.sarkarirojgarkendra.com
Author: Your Name
Description: Lightweight SEO-friendly Sarkari Jobs WordPress Theme
Version: 1.0
*/

/* ================= GLOBAL RESET ================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f9fa;
  color: #212529;
  overflow-x: hidden;
}

/* ================= HEADER ================= */

.site-header {
  background: #000000;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 2px solid #ff7a00;
  padding-top: 15px;
}

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

/* ===== BRANDING ===== */

.site-branding .brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Circular Logo */
.site-branding img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
}

/* Brand Text */
.brand-text {
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.1;
}

.brand-orange {
  color: #ff8c1a;
}

.brand-white {
  color: #ffffff;
}

.brand-green {
  color: #00ff3c;
  margin-left: 4px;
}

/* ================= NAVIGATION ================= */

.main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 4px;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #ff7a00;
}

/* ================= MOBILE MENU BUTTON ================= */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
}

/* ================= MARQUEE (CONSOLIDATED) ================= */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  width: 100%;
}

.marquee.latest {
  background: #0759e7;
  color: #ffffff;
}

.marquee.jobs {
  background: #050505;
  color: #ffffff;
}

.marquee-content,
.pill-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 45s linear infinite;
}

.marquee:hover .marquee-content,
.pill-marquee:hover .pill-track {
  animation-play-state: paused;
}

.marquee a {
  color: #ffffff;
  text-decoration: none;
  padding: 0 8px;
  display: inline-block;
}

/* Single animation keyframes for all marquees */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ================= PILL MARQUEE ================= */

.pill-marquee {
  background: #ffffff;
  padding: 10px 0;
  overflow: hidden;
  border-bottom: 1px solid #5474b5;
  position: relative;
  width: 100%;
}

.pill-track {
  display: inline-flex;
  gap: 20px;
  padding-left: 100%;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}

.pill-item {
  background: #fbb503;
  color: #1602f8;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pill-item:hover {
  background: #1efa01;
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* ================= HERO ================= */

.hero {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 40px 15px 35px;
  text-align: center;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  color: #0a1f44;
  max-width: 1100px;
  margin: 0 auto 12px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 17px;
  color: #444;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Accent divider */
.hero-divider {
  display: block;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: 50px;
  margin: 18px auto 0;
}

/* ================= CATEGORY GRID ================= */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 30px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card */
.category-card {
  background: #ffffff;
  border: 1px solid #00ff3c;
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Card Heading (pill style) */
.category-card h3 {
  text-align: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 50px;
  margin: 0 0 12px;
}

/* Category-based colors */
.category-card:nth-child(1) h3 { background: #1d4ed8; } /* Latest */
.category-card:nth-child(2) h3 { background: #047857; } /* Sarkari */
.category-card:nth-child(3) h3 { background: #6d28d9; } /* Result */
.category-card:nth-child(4) h3 { background: #c2410c; } /* Admit Card */
.category-card:nth-child(5) h3 { background: #0f766e; } /* Answer Key */
.category-card:nth-child(6) h3 { background: #7c2d12; } /* Private */
.category-card:nth-child(7) h3 { background: #0369a1; } /* Admission */
.category-card:nth-child(8) h3 { background: #15803d; } /* New Yojna */
.category-card:nth-child(9) h3 { background: #b45309; } /* Loans */

/* List */
.category-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.category-card li {
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
}

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

/* Links */
.category-card a {
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
}

.category-card a:hover {
  text-decoration: underline;
}

/* Empty state */
.category-card li:only-child {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* ================= ABOUT SECTION ================= */

.about-section {
  background: #f8f9fa;
  padding: 60px 15px 40px;
  text-align: center;
}

/* Section Heading */
.about-section h2 {
  display: inline-block;
  background: #c81e1e;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(200, 30, 30, 0.35);
}

/* Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;

}

/* Card */
.about-box {
  background: #ffffff;
  padding: 28px 26px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid #00ff3c;
}

.about-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Card Headings */
.about-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}

/* Different heading colors */
.about-box:nth-child(3n + 1) h3 {
  color: #047857; /* Green */
}

.about-box:nth-child(3n + 2) h3 {
  color: #6d28d9; /* Purple */
}

.about-box:nth-child(3n + 3) h3 {
  color: #1d4ed8; /* Blue */
}


/* Paragraph */
.about-box p {
  font-size: 15px;
  color: #1f2937;
  line-height: 1.7;
  text-align: justify;
  word-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
  
}

/* ================= FAQ SECTION (REDESIGNED) ================= */

/* ================= FAQ SECTION (ACCORDION) ================= */

.faq-section {
  padding: 60px 15px;
  background: #f8fafc;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 45px;
}

/* FAQ Card */
.faq-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  cursor: pointer;
  position: relative;
}

/* Question */
.faq-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  padding-right: 40px;
  line-height: 1.4;
}

/* Arrow */
.faq-item::after {
  display: none;
}

/* Answer (hidden by default) */
.faq-item p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-top: 14px;
  display: block;
}

/* Active state */
.faq-item.active p {
  display: block;
}

.faq-item.active::after {
  transform: rotate(180deg);
}

/* Hover */
.faq-item:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}


/* ================= FOOTER ================= */

.site-footer {
  background: radial-gradient(circle at top, #1a1a1a, #000000);
  color: #e5e7eb;
  padding-top: 50px;
}

/* Layout */
.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px 40px;
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 2.5fr;
  gap: 40px;
}

/* Headings */
.site-footer h4 {
  color: #facc15;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
}

.site-footer h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #facc15;
  margin-top: 6px;
}

/* ================= BRAND ================= */

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid #facc15;
}

.footer-logo h3 {
  font-size: 16px;
  margin: 0;
}

.brand-orange { color: #facc15; }
.brand-white { color: #ffffff; }
.brand-green { color: rgb(4, 248, 4); }

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin: 15px 0 18px;
  color: #cbd5e1;
}

/* Social */
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: #111827;
  color: #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.footer-social a:hover {
  background: #facc15;
  color: #000;
  transform: translateY(-3px);
}

/* ================= QUICK LINKS ================= */

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.link-grid a {
  background: #648feb;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  color: #060606;
  text-decoration: none;
  transition: background 0.3s ease;
}

.link-grid a:hover {
  background: #030bf7;
  color: #fffefe;
}

/* ================= INFORMATION ================= */

.footer-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-info li {
  margin-bottom: 12px;
}

.footer-info a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
}

.footer-info a:hover {
  color: #facc15;
}

/* ================= SUBSCRIBE ================= */

.footer-subscribe p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 16px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-form input {
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  background: #1f2937;
  color: #ffffff;
}

.subscribe-form input::placeholder {
  color: #9ca3af;
}

.subscribe-form button {
  background: #facc15;
  color: #000000;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.subscribe-form button:hover {
  background: #eab308;
}

/* ================= COPYRIGHT ================= */

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 18px 10px;
  font-size: 14px;
  color: #cbd5e1;
}

.footer-bottom span {
  color: #facc15;
  font-weight: 600;
}


/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  
  /* Mobile Menu */
  .menu-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    background: #000000;
    margin-top: 6px;
    padding: 10px 0;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-top: 1px solid rgba(255,255,255,0.15);
    width: 100%;
  }

  .main-nav a {
    padding: 12px 15px;
    display: block;
    width: 100%;
  }
  
  /* Branding */
  .site-branding img {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    font-size: 26px;
  }
  
  /* Marquee Fixes */
  .marquee {
    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
  }
  
  .marquee-content,
  .pill-track {
    animation-duration: 60s;
  }
  
  .marquee a {
    padding: 0 6px;
    font-size: 13px;
  }
  
  /* Pill Marquee Fixes */
  .pill-marquee {
    padding: 8px 0;
  }
  
  .pill-track {
    animation-duration: 80s;
    gap: 15px;
  }
  
  .pill-item {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  /* Hero */
  .hero {
    padding: 28px 12px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-divider {
    width: 80px;
    height: 3px;
  }
  
  /* Grid Layouts */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .category-card h3 {
    font-size: 20px;
  }
  
  .category-card a {
    font-size: 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .site-footer a {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-section h2 {
    font-size: 18px;
    padding: 12px 22px;
  }

  .about-box h3 {
    font-size: 18px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 22px;
  }
  
  .hero-desc {
    font-size: 14px;
  }
  
  .brand-text {
    font-size: 16px;
  }
  
  .marquee-content,
  .pill-track {
    animation-duration: 80s;
  }
  
  .pill-track {
    animation-duration: 100s;
    gap: 10px;
  }
  
  .pill-item {
    padding: 5px 10px;
    font-size: 12px;
  }
}
/* ================= MOBILE ================= */

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .faq-section h2 {
    font-size: 26px;
  }

  .faq-item {
    padding: 18px 20px;
  }

  .faq-item h4 {
    font-size: 16px;
  }
}
/* ================= MOBILE ================= */

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-brand,
  .footer-links,
  .footer-info,
  .footer-subscribe {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================= STATIC PAGE CONTENT ================= */

.page-wrapper {
  padding: 50px 15px;
  background: #f8fafc;
}

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
}

/* Page Main Title */
.page-title {
  font-size: 42px;
  font-weight: 800;
  color: #0a1f44;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.25;
}

/* ================= ABOUT PAGE SECTIONS ================= */

/* H2 – Section Card Header */
.page-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #ef4444;
  background: #ffffff;
  border-top: 5px solid #ef4444;
  border-radius: 14px 14px 0 0;
  padding: 18px 22px;
  margin: 40px 0 0;
}

/* Paragraphs inside card */
.page-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #1f2937;
  background: #ffffff;
  padding: 14px 22px;
  margin: 0;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

/* H3 – Sub-headings */
.page-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #16a34a;
  background: #ffffff;
  padding: 18px 22px 8px;
  margin: 0;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

/* Close card bottom */
.page-content p:last-of-type,
.page-content ul:last-of-type {
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0 0 14px 14px;
  padding-bottom: 26px;
}

/* Lists */
.page-content ul {
  background: #ffffff;
  padding: 14px 40px 26px;
  margin: 0;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.page-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .page-title {
    font-size: 28px;
  }

  .page-content h2 {
    font-size: 21px;
    padding: 14px 16px;
  }

  .page-content h3 {
    font-size: 17px;
    padding: 14px 16px 6px;
  }

  .page-content p,
  .page-content ul {
    padding-left: 16px;
    padding-right: 16px;
  }
}



/* ================= CATEGORY PAGE ================= */

.category-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 15px;
}

.category-header {
  text-align: center;
  margin-bottom: 30px;
}

.category-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0a1f44;
  margin-bottom: 10px;
}

.category-description {
  font-size: 16px;
  color: #374151;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Post Cards */

.category-post-card {
  display: flex;
  justify-content: space-between;
  align-items: right;
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-left: 5px solid #2563eb;
}

.post-title {
  font-size: 18px;
  margin: 0 0 6px 0;
}

.post-title a {
  color: #1d4ed8;
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-badge {
  display: inline-block;
  font-size: 12px;
  background: #2563eb;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
}

.post-date {
  font-size: 15px;
  color: #0455f7;
}

/* Mobile */
@media (max-width: 768px) {
  .category-post-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-right {
    margin-top: 8px;
  }

  .category-header h1 {
    font-size: 24px;
  }
}
/* ================= POST META ================= */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.post-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

.post-tag {
  background: #fde68a;
  color: #92400e;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.post-date {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}
/* FLOATING MENU */
.srk-float-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.srk-float-btn {
  background: #1e3a8a;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.srk-float-panel {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  padding: 14px;
}

.srk-menu-group {
  margin-bottom: 14px;
}

.srk-menu-group h4 {
  margin: 6px 0;
  font-size: 14px;
  color: #1e3a8a;
  border-bottom: 1px solid #e5e7eb;
}

.srk-menu-group a {
  display: block;
  padding: 8px 6px;
  font-size: 14px;
  color: #0f172a;
  text-decoration: none;
}

.srk-menu-group a:hover {
  background: #eef2ff;
  border-radius: 6px;
}
