:root {
  font-family: system-ui, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f1f5f9;
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  padding: 0 16px;
  overflow-x: hidden;
}

p {
  line-height: 1.6;
}

.btn {
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin: 12px 0;
}

.btn:hover {
  background: #1d4ed8;
}

/* .full-width {
  margin-left: -20px;
  margin-right: -20px;
} */

/* HEADER */
.site-header,
.breaking-news {
  width: 100%;
  overflow-x: hidden;
}

.header-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-sizing: border-box;
  background-color: #1d4ed8;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 35px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.header-desc {
  font-size: 12px;
  color: #d1d5db;
}

.header-image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

/* Breaking new section */
/* .breaking-news {
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  background: #fff3cd;
  border-bottom: 1px solid #f1d18a;
  border-top: 1px solid #f1d18a;
  padding: 8px 0;
  margin: 12px 0px;
} */

.breaking-track {
  display: inline-block;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #856404;
  padding-left: 100%;
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* POPUP */
.popup {
  display: none;
  margin-top: 12px;
}

.popup.active {
  display: block;
}

.popup-box {
  background: #fff;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin: 0 auto;
}

.pf-list {
  display: grid;
  gap: 10px;
}

.pf-item {
  border: 1px solid #1d4ed8;
  border-radius: 10px;
  background: #1d4ed8;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  gap: 10px;
  color: #fff;
}

@media (max-width: 375px) {
  .pf-item {
    padding: 10px;
  }
}
@media (max-width: 320px) {
  .pf-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
  }
}

.pf-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apply-btn {
  height: 70%;
  width: 95px;
  background: #ffffff;
  font-weight: 600;
  color: #000;
  border-radius: 7px;
  border: 1px solid #1d4ed8;
  cursor: pointer;
}

@media (max-width: 320px) {
  .apply-btn {
    width: 100%;
    height: 36px;
  }
}

.pf-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

/* QUIZ */
#quiz {
  display: none;
}

#quiz.active {
  display: block;
}

.question {
  display: none;
  border: 1px solid #e2e8f0;
  padding: 16px;
  border-radius: 14px;
}

.question.active {
  display: block;
}

.q-title {
  font-weight: 700;
  margin-bottom: 12px;
}

/* Options section */
.options {
  display: grid;
  gap: 8px;
}

.option {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 16px;
}

.options.disabled {
  pointer-events: none;
}

.options.disabled .option {
  cursor: not-allowed;
}

/* Prevent hover color change */
.options.disabled .option:hover {
  background: inherit;
  color: inherit;
  box-shadow: none;
  transform: none;
}

/* LOCKED STATE */
.option.selected {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.option.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.option:hover {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.option-yes {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.option-yes:hover {
  background: #15803d;
  border-color: #15803d;
}

.option-no {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.option-no:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

body > .include-fragment {
  width: 100%;
  max-width: 480px;
}

.site-footer {
  width: 100%;
  background: #fff;
  padding: 0 16px 26px;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding: 18px 0 8px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  display: inline-block;
  max-width: 100%;
  color: #1d4ed8;
  font-size: clamp(1.125rem, 5.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.footer-logo:hover {
  color: #2563eb;
}

.footer-nav {
  display: grid;
  gap: 12px;
  width: 100%;
}

.footer-group {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.footer-heading {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #1d4ed8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.footer-link {
  display: inline-block;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}

.footer-link:hover {
  border-color: #1d4ed8;
  color: #1d4ed8;
}

/* QUESTION PAGES */
.question-meta {
  color: #475569;
  font-size: 14px;
  margin: 0;
}

.ads-container {
  width: calc(100% + 32px);
  max-width: none;
  margin: 16px -16px;
}

.ad-unit-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  height: auto;
  line-height: 0;
}

.ad-unit-wrapper > div {
  min-height: 50px;
  line-height: normal;
}

.success-note {
  background: #ecfeff;
  border: 1px solid #67e8f9;
  color: #0f172a;
  padding: 12px;
  border-radius: 10px;
  margin-top: 8px;
}

.question-wrap {
  margin-top: 12px;
}

.question-wrap h2 {
  margin: 0;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-size: 18px;
}

.question-wrap .options {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* SUBMIT POPUP */
.submit-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.submit-popup.active {
  display: flex;
}

.submit-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.submit-card h3 {
  margin: 0 0 10px;
}

.submit-card p {
  margin: 0 0 16px;
}

.submit-card .btn {
  margin: 0;
}

/* Job Portal */
.section-title {
  margin: 20px 0 12px;
  font-size: 18px;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-item {
  background: #f9f9f9;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.grid-item p {
  font-size: 14px;
  line-height: 1.4;
  color: #555;
  font-weight: 500;
  text-align: justify;
}

.grid-item {
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition:
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.info-grid .grid-item:nth-child(1) {
  background: #e3f2fd;
}

.info-grid .grid-item:nth-child(2) {
  background: #e8f5e9;
}

.info-grid .grid-item:nth-child(3) {
  background: #fff3e0;
}

.info-grid .grid-item:nth-child(4) {
  background: #fce4ec;
}

.info-grid .grid-item:nth-child(5) {
  background: #ede7f6;
}

.info-grid .grid-item:nth-child(6) {
  background: #e0f2f1;
}

.info-grid .grid-item:nth-child(1):hover {
  border-color: #1e88e5;
}

.info-grid .grid-item:nth-child(2):hover {
  border-color: #43a047;
}

.info-grid .grid-item:nth-child(3):hover {
  border-color: #fb8c00;
}

.info-grid .grid-item:nth-child(4):hover {
  border-color: #d81b60;
}

.info-grid .grid-item:nth-child(5):hover {
  border-color: #5e35b1;
}

.info-grid .grid-item:nth-child(6):hover {
  border-color: #00897b;
}

.grid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Result Page */
.result-wrap {
  text-align: center;
  padding: 30px 20px;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.btn.primary {
  background: #0d6efd;
  color: #fff;
}

.btn.secondary {
  background: #f1f1f1;
  color: #333;
}

/* Information Paragraphs */
.info-text {
  text-align: justify;
}

/* Contact page */
.contact-page {
  padding-top: 16px;
  padding-bottom: 8px;
}

.contact-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.contact-highlight {
  color: #1d4ed8;
}

.contact-hero p,
.contact-card p {
  margin: 0 0 12px;
  color: #334155;
}

.contact-card {
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.contact-card a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover {
  color: #2563eb;
}

.terms-ack {
  font-weight: 700;
  text-transform: uppercase;
}

.policy-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #334155;
}

.policy-list li + li {
  margin-top: 6px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  color: #0f172a;
  background: #f8fafc;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button:hover {
  background: #1d4ed8;
}

.char-counter {
  margin-top: -4px;
  font-size: 12px;
  color: #64748b;
  text-align: right;
}

.char-counter.limit {
  color: #dc2626;
}

.form-toast {
  display: none;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
}

.form-toast.show {
  display: block;
}

.email-link {
  display: inline-block;
  margin: 0 0 12px;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.email-link:hover {
  color: #2563eb;
}

.tip-list {
  display: grid;
  gap: 10px;
}

.tip-item {
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.tip-item strong {
  display: block;
  margin-bottom: 4px;
  color: #1d4ed8;
}

.tip-item span {
  color: #334155;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  color: #1d4ed8;
  font-size: 22px;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  content: "\2212";
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  color: #334155;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.faq-answer a:hover {
  color: #2563eb;
}

.ad-loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.85);
  align-items: center;
  justify-content: center;
}

html.ad-lock,
html.ad-lock body {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

.ad-loader-overlay.active {
  display: flex;
  touch-action: none;
  overscroll-behavior: none;
}

.ad-loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #1d4ed8;
  border-radius: 50%;
  animation: ad-spin 0.8s linear infinite;
}

@keyframes ad-spin {
  to {
    transform: rotate(360deg);
  }
}
