/* =========================================================
   SarkariJobIndia – Clean Structured CSS (Optimized)
   ========================================================= */

/* ================= VARIABLES ================= */
:root {
  --saffron: #ff9933;
  --green: #138808;
  --blue: #0b3c5d;
  --dark-blue: #06273d;
  --white: #ffffff;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ================= RESET ================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #222;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= HEADER ================= */
.header {
  background: var(--white);
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  border-bottom: 4px solid var(--saffron);
  box-shadow: var(--shadow);
}

.header img {
  height: 120px;
  max-width: 100%;
}

/* ================= CONTAINER ================= */
.container {
  max-width: 1200px;
  margin: 70px auto 20px;
  padding: 20px;
}

/* ================= HEADINGS ================= */
.job-material-heading {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(90deg, #0d47a1, #1565c0);
  padding: 12px 20px;
  border-left: 6px solid #ff9800;
  border-radius: 6px;
  width: fit-content;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ================= BUTTONS ================= */
.apply-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  transition: 0.2s;
}

.apply-btn:hover {
  background: var(--saffron);
  color: #000;
}

/* ================= TABLE ================= */
.job-table {
  width: 80%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.job-table th {
  background: linear-gradient(90deg, #0f9d58, #1ea451);
  color: #fff;
  padding: 14px;
  font-size: 13px;
  text-transform: uppercase;
  text-align: center;
}

.job-table td {
  padding: 14px;
  font-size: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.job-table tbody tr:last-child td {
  border-bottom: none;
}

/* TABLE ELEMENTS */
.job-date {
  width: 15%;
  font-weight: 600;
  color: #0f9d58;
}

.job-topic {
  width: 70%;
}

.job-link {
  width: 15%;
}

.job-link a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  background: #0f9d58;
  color: #fff;
  border-radius: 6px;
}

.job-link a:hover {
  background: var(--saffron);
  color: #000;
}

.footer {
  background: linear-gradient(180deg, var(--dark-blue), var(--blue));
  color: #ffffff;
  padding: 30px 20px 30px;
  margin-top: 50px;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  z-index: 1;
  overflow: visible;   /* Important: prevents cut issue */
}

/* Container Grid */
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}


/* ================= Logo & About ================= */

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: #ffcc70;
  margin-bottom: 15px;
}

.footer-about {
  margin-right: 15px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
}

/* ================= Headings ================= */

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #ffcc70;
  position: relative;
}

.footer-col h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #ffcc70;
  position: absolute;
  left: 0;
  bottom: -6px;
}

/* ================= Links ================= */

.footer-col a {
  display: block;
  color: #f1f1f1;
  text-decoration: none;
  font-size: 14px;
  margin: 8px 0;
  transition: 0.3s ease;
}

.footer-col a:hover {
  color: #ffcc70;
  padding-left: 6px;
}

/* ================= Social Section ================= */

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 5px 0 5px;
  margin-top: 5px;
  position: relative;
  z-index: 2;
}

.footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  font-size: 20px;
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #ffcc70;
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ================= Bottom Section ================= */

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.8;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
}

/* ================= TEST UI ================= */
.timer {
  position: fixed;
  top: 20px;
  right: 20px;

  padding: 10px 18px;

  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;

  color: #fff;

  background: linear-gradient(135deg, #ff5722, #ff9800);
  border-radius: 12px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.25);

  z-index: 9999;

  display: none;

  transition: 0.3s ease;
}

.welcome-user {
  font-size: 18px;
  font-weight: 600;
  text-align: center;

  margin-bottom: 20px;
  padding: 10px;

  background: linear-gradient(90deg, #e3f2fd, #bbdefb);
  color: #0d47a1;

  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.start-wrapper {
  min-height: calc(100vh - 100px);
  background: transparent;
}

.start-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  max-width: 420px;
  text-align: center;
}

/* SETTINGS CONTAINER */
.settings-box {
  background: #f7f9fc;
  padding: 15px;
  border-radius: 14px;
  margin: 15px 0;

  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

/* OPTION BLOCK */
.option-box {
  margin-bottom: 15px;
}

/* LABEL */
.option-box label {
  font-size: 13px;
  font-weight: 600;
  color: #1e3c72;
  display: block;
  margin-bottom: 6px;
}

/* SELECT BOX */
.option-box select {
  width: 100%;
  padding: 12px 14px;

  border-radius: 12px;
  border: 1px solid #ddd;

  font-size: 14px;
  background: #ffffff;

  transition: 0.25s ease;
}

/* HOVER */
.option-box select:hover {
  border-color: #1e88e5;
}

/* FOCUS */
.option-box select:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30,136,229,0.15);
}

.input-group {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  gap: 10px;
  margin: 15px 0;
}

.input-group input {
  border: none;
  outline: none;
  width: 100%;
}

/* QUESTION CARD */
/* ===== COMPACT QUESTION CARD ===== */

.card {
  background: #ffffff;
  padding: 15px 18px;   /* reduced */
  margin-bottom: 12px;  /* reduced */
  border-radius: 12px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* QUESTION TEXT */
.card h3 {
  font-size: 15px;      /* smaller */
  margin-bottom: 12px;
  color: #1e3c72;
}

/* ===== OPTIONS (COMPACT) ===== */

.option {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  margin: 10px 0;

  border-radius: 12px;
  border: 1px solid #e0e0e0;

  background: #ffffff;
  cursor: pointer;

  transition: all 0.25s ease;
  position: relative;
}

/* HOVER EFFECT */
.option:hover {
  background: linear-gradient(135deg, #f5f9ff, #eef4ff);
  border-color: #1e88e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30,136,229,0.15);
}

/* RADIO BUTTON */
.option input {
  transform: scale(1.2);
  accent-color: #1e88e5;
  cursor: pointer;
}

.option span {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

/* TEXT */
.option label {
  font-size: 11px;   /* smaller */
}

/* SELECTED */
.option:has(input:checked) {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-color: #1e88e5;
  box-shadow: 0 6px 18px rgba(30,136,229,0.25);
}

.option:has(input:checked)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: #1e88e5;
  border-radius: 12px 0 0 12px;
}



.q-img {
  margin: 12px 4px;
  text-align: left;
}

.q-img img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: 0.3s ease;
}








.submit-wrapper {
  text-align: center;
  margin: 30px 0;
}

.submit-btn {
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;

  border: none;
  border-radius: 30px;

  background: linear-gradient(135deg, #ff5722, #ff9800);
  color: #fff;

  cursor: pointer;
  transition: all 0.3s ease;

  box-shadow: 0 10px 25px rgba(255,87,34,0.3);
}

/* HOVER */
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255,87,34,0.5);
}

/* CLICK */
.submit-btn:active {
  transform: scale(0.96);
}

/* RESULT */
.result-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999; /* 🔥 VERY HIGH */
  padding: 20px;
}

.result-card {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;

  box-shadow: 0 20px 60px rgba(0,0,0,0.35);

  animation: popupFade 0.4s ease;
}

@keyframes popupFade {
  from {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.score-box {
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #fff;

  padding: 20px;
  border-radius: 16px;
  margin: 20px 0;

  box-shadow: 0 10px 30px rgba(13,71,161,0.4);
}

.score-box h1 {
  font-size: 32px;
  font-weight: 600;
}

#resultMessage {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.best-wish {
  font-size: 13px;
  color: #666;
}

/* ================= UTILITIES ================= */
.urgent-date {
  color: red;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .job-table {
    width: 100%;
    box-shadow: none;
  }

  .job-table thead {
    display: none;
  }
  
  
  .q-img {
    margin: 8px 2px;
  }

  .q-img img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  
  
  
  

  .job-row {
    display: flex;
    flex-direction: column;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
  }

  .job-row:nth-child(even) {
    background: #f4f8ff;
  }
  
   .result-card {
    padding: 20px 15px;
    border-radius: 16px;
    width: 95%;
  }

  #resultMessage {
    font-size: 11px;
    line-height: 1.4;
  }

  .best-wish {
    font-size: 12px;
  }

  .score-box {
    padding: 15px;
    border-radius: 12px;
  }

  .score-box h1 {
    font-size: 14px;
  }
  
  #pdfMessage {
    font-size: 10px;   /* smaller text */
    line-height: 1.3;
    text-align: center;
  }

  .countdown {
    font-size: 9px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-col a:hover {
    padding-left: 0;
  }

  .footer-social {
    gap: 15px;
    padding: 40px 0 20px;
  }

  .footer-social a {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}




/* ================= START SCREEN IMPROVED ================= */

.start-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: transparent;
  padding: 15px;
}

/* CARD */
.start-card {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  text-align: center;

  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transition: 0.3s ease;
}

.start-card:hover {
  transform: translateY(-6px);
}

.welcome-line {
  font-size: 14px;
  font-weight: 500;
  color: #0d47a1;
  background: #e3f2fd;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* TITLE */
.start-card h2 {
  font-size: 30px;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 20px;
}

/* INPUT BOX */
.input-group {
  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px 14px;

  margin: 20px 0;
  background: #f7f9fc;

  transition: 0.3s;
}

/* FOCUS EFFECT */
.input-group:focus-within {
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30,136,229,0.15);
  background: #fff;
}

/* INPUT */
.input-group input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  background: transparent;
}

/* BUTTON */
.start-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;

  font-size: 16px;
  font-weight: 600;

  background: linear-gradient(135deg, #ff5722, #ff9800);
  color: #fff;

  cursor: pointer;
  transition: all 0.3s ease;
}

/* HOVER */
.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* CLICK */
.start-btn:active {
  transform: scale(0.97);
}

/* MOBILE */
@media (max-width: 480px) {
  .start-card {
    padding: 25px 18px;
  }

  .start-card h2 {
    font-size: 24px;
  }
}

