/* =========================================================
   IMPORTANT QUESTIONS - MODERN SUBJECT CARDS
========================================================= */

.important-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.08), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(124, 58, 237, 0.07), transparent 30%),
    #f8fafc;
  padding: 40px 0 70px;
}

.important-container {
  width: min(1180px, calc(100% - 30px));
  margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.important-hero {
  position: relative;
  overflow: hidden;
  padding: 55px 45px;
  margin-bottom: 45px;
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #4f46e5 100%);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

.important-hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.important-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.12);
}

.important-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  background: rgba(255,255,255,.1);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.important-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0 0 15px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
}

.important-hero > p {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.9;
}


/* =========================================================
   STATS
========================================================= */

.important-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 35px;
}

.important-stat {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

.important-stat strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 25px;
}

.important-stat span {
  color: #bfdbfe;
  font-size: 13px;
}


/* =========================================================
   INTRO
========================================================= */

.important-intro {
  margin-bottom: 50px;
  padding: 35px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.important-intro h2 {
  margin: 0 0 15px;
  color: #0f172a;
  font-size: 28px;
}

.important-intro p {
  color: #475569;
  font-size: 16px;
  line-height: 1.85;
}


/* =========================================================
   NOTE
========================================================= */

.important-note {
  margin-top: 25px;
  padding: 20px 22px;
  border-left: 5px solid #2563eb;
  border-radius: 12px;
  background: #eff6ff;
}

.important-note strong {
  color: #1d4ed8;
}

.important-note p {
  margin-bottom: 0;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.important-section-header {
  margin-bottom: 28px;
}

.section-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.important-section-header h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 32px;
}

.important-section-header p {
  margin: 0;
  color: #64748b;
}


/* =========================================================
   SUBJECT GRID
========================================================= */

.important-set-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}


/* =========================================================
   MODERN SUBJECT CARD
========================================================= */

.important-set-card {
  position: relative;
  display: flex;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.important-set-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    #2563eb,
    #7c3aed
  );
  opacity: 0;
  transition: opacity .3s ease;
}

.important-set-card:hover {
  transform: translateY(-8px);
  border-color: #bfdbfe;
  box-shadow:
    0 20px 45px rgba(37, 99, 235, 0.13),
    0 5px 15px rgba(15, 23, 42, 0.05);
}

.important-set-card:hover::before {
  opacity: 1;
}


/* =========================================================
   NUMBER
========================================================= */

.set-number {
  position: absolute;
  top: 20px;
  right: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  border-radius: 15px;

  color: #2563eb;
  background: #eff6ff;

  font-size: 15px;
  font-weight: 800;

  transition:
    transform .35s ease,
    background .35s ease,
    color .35s ease;
}

.important-set-card:hover .set-number {
  transform: rotate(6deg) scale(1.08);
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.set-content {
  width: 100%;
  padding: 34px 32px 30px;
}

.set-label {
  display: inline-flex;
  align-items: center;

  margin-bottom: 14px;
  padding: 7px 12px;

  border-radius: 50px;

  color: #475569;
  background: #f8fafc;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
}

.set-content h3 {
  margin: 0 70px 12px 0;

  color: #0f172a;

  font-size: 25px;
  line-height: 1.3;
  font-weight: 800;

  transition: color .3s ease;
}

.important-set-card:hover .set-content h3 {
  color: #2563eb;
}

.set-content p {
  min-height: 78px;
  margin: 0 0 22px;

  color: #64748b;

  font-size: 14px;
  line-height: 1.8;
}


/* =========================================================
   CARD META
========================================================= */

.set-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 23px;
}

.set-meta span {
  display: inline-flex;
  align-items: center;

  padding: 8px 11px;

  border-radius: 9px;

  color: #475569;
  background: #f8fafc;

  font-size: 12px;
  font-weight: 600;
}


/* =========================================================
   BUTTON
========================================================= */

.set-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;

  border-radius: 12px;

  color: #fff;
  background: linear-gradient(
    135deg,
    #2563eb,
    #4f46e5
  );

  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.20);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.set-button:hover {
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.30);
}


/* =========================================================
   STUDY METHOD
========================================================= */

.important-study-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.important-study-card {
  padding: 25px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
  transition: .3s ease;
}

.important-study-card:hover {
  background: #fff;
  border-color: #bfdbfe;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(15,23,42,.07);
}

.important-study-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  margin-bottom: 15px;

  border-radius: 10px;

  color: #2563eb;
  background: #dbeafe;

  font-size: 13px;
  font-weight: 800;
}

.important-study-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
}

.important-study-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   EXAM TOPICS
========================================================= */

.important-topics {
  margin-top: 45px;
  padding: 35px;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #111827,
      #1e293b
    );
}

.important-topics h2 {
  margin: 0 0 22px;
  font-size: 25px;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-list span {
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  color: #e2e8f0;
  background: rgba(255,255,255,.07);
  font-size: 13px;
  transition: .25s ease;
}

.topic-list span:hover {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-2px);
}


/* =========================================================
   BREADCRUMB
========================================================= */

.important-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  color: #64748b;
  font-size: 13px;
}

.important-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.important-breadcrumb a:hover {
  text-decoration: underline;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .important-set-grid {
    grid-template-columns: 1fr;
  }

  .important-study-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .important-stats {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .important-page {
    padding: 25px 0 50px;
  }

  .important-container {
    width: min(100% - 20px, 1180px);
  }

  .important-hero {
    padding: 35px 22px;
    border-radius: 20px;
  }

  .important-hero h1 {
    font-size: 34px;
  }

  .important-hero > p {
    font-size: 14px;
    line-height: 1.8;
  }

  .important-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 25px;
  }

  .important-stat {
    padding: 14px;
  }

  .important-stat strong {
    font-size: 21px;
  }

  .important-stat span {
    font-size: 11px;
  }

  .important-intro {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .important-intro h2 {
    font-size: 23px;
  }

  .important-section-header h2 {
    font-size: 26px;
  }

  .important-set-card {
    min-height: auto;
    border-radius: 20px;
  }

  .set-content {
    padding: 28px 20px 24px;
  }

  .set-number {
    width: 45px;
    height: 45px;
    top: 17px;
    right: 17px;
  }

  .set-content h3 {
    margin-right: 55px;
    font-size: 22px;
  }

  .set-content p {
    min-height: auto;
    font-size: 13px;
  }

  .set-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .set-button {
    width: 100%;
  }

  .important-study-grid {
    grid-template-columns: 1fr;
  }

  .important-topics {
    padding: 25px 20px;
    border-radius: 18px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .important-set-card,
  .set-number,
  .set-button,
  .important-study-card,
  .topic-list span {
    transition: none;
  }

}

 /* =========================================================
   KANNADAGK - PREMIUM QUESTION CARDS
   Works with current important-questions-001.js
========================================================= */


/* =========================================================
   QUESTION LIST
========================================================= */

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}


/* =========================================================
   MAIN QUESTION CARD
   THIS IS THE WHOLE CARD
========================================================= */

.important-question-card {

  position: relative;

  width: 100%;

  padding: 28px 30px 30px;

  border: 1px solid #dce4ef;

  border-radius: 24px;

  background: #ffffff;

  box-shadow:
    0 2px 5px rgba(15, 23, 42, 0.03),
    0 10px 25px rgba(15, 23, 42, 0.055),
    0 20px 45px rgba(15, 23, 42, 0.035);

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}


/* Top gradient */

.important-question-card::before {

  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 5px;

  background:
    linear-gradient(
      90deg,
      #2563eb,
      #4f46e5,
      #7c3aed
    );
}


/* Hover */

.important-question-card:hover {

  transform: translateY(-5px);

  border-color: #b8cbe4;

  box-shadow:
    0 5px 12px rgba(15, 23, 42, 0.04),
    0 18px 40px rgba(37, 99, 235, 0.09),
    0 30px 60px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   TOP ROW
========================================================= */

.question-card-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 18px;
}


/* Question number */

.question-number {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 38px;

  padding: 0 13px;

  border-radius: 11px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #4f46e5
    );

  font-size: 12px;

  font-weight: 800;

  box-shadow:
    0 6px 15px rgba(37, 99, 235, 0.20);
}


/* Subject */

.question-subject {

  display: inline-flex;

  align-items: center;

  padding: 7px 11px;

  border: 1px solid #e2e8f0;

  border-radius: 50px;

  color: #64748b;

  background: #f8fafc;

  font-size: 11px;

  font-weight: 700;
}


/* =========================================================
   QUESTION TITLE
========================================================= */

.question-title {

  margin: 0;

  padding: 0;

  color: #0f172a;

  font-size: 20px;

  line-height: 1.7;

  font-weight: 750;
}


/* =========================================================
   CHAPTER
========================================================= */

.question-chapter {

  display: inline-flex;

  align-items: center;

  margin-top: 15px;

  padding: 7px 11px;

  border-radius: 9px;

  color: #475569;

  background: #f1f5f9;

  font-size: 12px;

  font-weight: 600;
}


/* =========================================================
   ANSWER SECTION
   Integrated inside main card
========================================================= */

.question-answer {

  position: relative;

  margin-top: 24px;

  padding: 18px 20px 18px 22px;

  border: 1px solid #d8f0df;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #f4fcf6,
      #f9fffa
    );
}


/* Green vertical indicator */

.question-answer::before {

  content: "";

  position: absolute;

  top: 13px;
  bottom: 13px;

  left: 0;

  width: 4px;

  border-radius: 0 5px 5px 0;

  background: #22c55e;
}


/* Answer label */

.answer-label {

  margin-bottom: 7px;

  color: #15803d;

  font-size: 12px;

  font-weight: 800;
}


/* Answer */

.answer-text {

  color: #166534;

  font-size: 17px;

  line-height: 1.7;

  font-weight: 800;
}


/* =========================================================
   EXPLANATION
========================================================= */

.question-explanation {

  position: relative;

  margin-top: 14px;

  padding: 18px 20px 18px 22px;

  border: 1px solid #dbe7f7;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #f8fbff,
      #fbfdff
    );
}


/* Blue vertical indicator */

.question-explanation::before {

  content: "";

  position: absolute;

  top: 13px;
  bottom: 13px;

  left: 0;

  width: 4px;

  border-radius: 0 5px 5px 0;

  background: #3b82f6;
}


/* Explanation label */

.explanation-label {

  margin-bottom: 7px;

  color: #1d4ed8;

  font-size: 12px;

  font-weight: 800;
}


/* Explanation text */

.question-explanation p {

  margin: 0;

  color: #475569;

  font-size: 14px;

  line-height: 1.9;
}


/* =========================================================
   CARD INTERNAL SEPARATION
========================================================= */

.question-answer + .question-explanation {

  margin-top: 14px;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination-inner {

  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 35px;
}


.pagination-button {

  min-width: 42px;

  height: 42px;

  padding: 0 13px;

  border: 1px solid #dce4ef;

  border-radius: 10px;

  color: #475569;

  background: #ffffff;

  font-family: inherit;

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;

  transition: all .25s ease;
}


.pagination-button:hover:not(:disabled) {

  border-color: #93c5fd;

  color: #2563eb;

  background: #eff6ff;
}


.pagination-button.active {

  border-color: #2563eb;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #4f46e5
    );

  box-shadow:
    0 6px 15px rgba(37, 99, 235, .20);
}


.pagination-button:disabled {

  opacity: .45;

  cursor: not-allowed;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.questions-empty {

  padding: 60px 25px;

  text-align: center;

  border: 1px solid #e2e8f0;

  border-radius: 22px;

  background: #ffffff;

  box-shadow:
    0 8px 25px rgba(15, 23, 42, .05);
}


.empty-icon {

  margin-bottom: 12px;

  font-size: 38px;
}


.questions-empty h3 {

  margin: 0 0 8px;

  color: #0f172a;

  font-size: 20px;
}


.questions-empty p {

  margin: 0;

  color: #64748b;

  font-size: 14px;
}


/* =========================================================
   ERROR
========================================================= */

.questions-error {

  padding: 45px 25px;

  text-align: center;

  border: 1px solid #fecaca;

  border-radius: 20px;

  background: #fff7f7;
}


.questions-error h3 {

  margin: 0 0 10px;

  color: #b91c1c;
}


.questions-error p {

  color: #64748b;
}


.questions-error button {

  margin-top: 12px;

  padding: 10px 18px;

  border: 0;

  border-radius: 10px;

  color: #ffffff;

  background: #dc2626;

  cursor: pointer;
}


/* =========================================================
   NATIVE AD SLOT
   Keep between question cards
========================================================= */

.native-ad-slot {

  width: 100%;

  min-height: 90px;

  margin: 30px 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 16px;

  background: #f8fafc;

  color: #94a3b8;

  font-size: 10px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .questions-list {

    gap: 20px;

  }


  .important-question-card {

    padding: 23px 18px 20px;

    border-radius: 19px;

  }


  .question-card-top {

    align-items: flex-start;

  }


  .question-number {

    min-height: 35px;

    padding: 0 10px;

    font-size: 11px;

  }


  .question-subject {

    max-width: 52%;

    padding: 6px 9px;

    font-size: 10px;

    text-align: right;

  }


  .question-title {

    font-size: 17px;

    line-height: 1.7;

  }


  .question-chapter {

    margin-top: 12px;

    font-size: 11px;

  }


  .question-answer {

    margin-top: 19px;

    padding: 15px 15px 15px 19px;

  }


  .answer-text {

    font-size: 15px;

  }


  .question-explanation {

    margin-top: 11px;

    padding: 15px 15px 15px 19px;

  }


  .question-explanation p {

    font-size: 13px;

    line-height: 1.85;

  }


  .native-ad-slot {

    min-height: 70px;

    margin: 22px 0;

  }

}


