
/* =========================================
   StudyMaster - Main Stylesheet
   ========================================= */

 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', sans-serif;
    }

html {
    scroll-behavior: smooth;
   }
	
	
    body {
      background-color: #f9f9f9;
      color: #333;
    }

 


/* ---------- Header ---------- */

 header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: #004080;
      padding: 1rem 2rem;
      color: white;
    }

    .logo {
      font-size: 1.8rem;
      font-weight: bold;
    }

/* ---------- Navigation Bar ---------- */

nav {
    background-color: #004080;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0;
}

 nav a {
      color: white;
      margin-left: 1.5rem;
      text-decoration: none;
      font-weight: 500;
    }


/* ---------- Mobile Header ---------- */

@media (max-width: 768px) {

    header {
        width: 100%;
        box-sizing: border-box;
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    nav {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        padding: 0.4rem 0.5rem;
    }

    nav a {
        margin: 0 0.45rem;
        padding: 0.35rem 0;
        font-size: 14px;
    }
}


/* ---------- Main Content ---------- */

main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}


form {
      display: flex;
      flex-direction: column;
    }

    label {
      margin-bottom: 0.5rem;
      font-weight: 500;
    }

    input, textarea {
      padding: 10px;
      margin-bottom: 1.2rem;
      border: 1px solid #ccc;
      border-radius: 5px;
      font-size: 1rem;
    }

    textarea {
      resize: vertical;
      min-height: 100px;
    }

    button {
      background-color: #004080;
      color: white;
      padding: 0.7rem;
      border: none;
      border-radius: 5px;
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    button:hover {
      background-color: #002a5c;
    }


/* ---------- Page Title ---------- */

.page-title {
    background-color: white;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 6px solid #1e3a8a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-title h1 {
    margin: 0;
    color: #172554;
    font-size: 25px;
}


/* ---------- Content Section ---------- */

section:not(.hero) {
    background-color:  white;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


.hero {
      text-align: center;
      padding: 4rem 2rem;
      background: linear-gradient(120deg, #e0f7fa, #fff);
    }

    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .hero p {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
    }

    .btn {
      background-color: #004080;
      color: white;
      padding: 0.75rem 1.5rem;
      border-radius: 5px;
      text-decoration: none;
    }

    .content {
      max-width: 1100px;
      margin: auto;
      padding: 2.5rem 1.5rem;
    }

    .content h2 {
      text-align: center;
      color: #004080;
      margin-bottom: 1rem;
    }

    .content p {
      margin-bottom: 1rem;
      text-align: center;
    }

    .subjects {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .subject {
      background-color: #fff;
      width: 230px;
      padding: 1.5rem;
      border-radius: 8px;
      text-align: center;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .subject h3 {
      color: #004080;
      margin-bottom: 0.7rem;
    }

    .subject a {
      display: inline-block;
      margin-top: 0.5rem;
      color: #004080;
      font-weight: 600;
      text-decoration: none;
    }

    .subject a:hover {
      text-decoration: underline;
    }

    .features {
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
      padding: 3rem 1rem;
      background-color: #fff;
    }

    .feature {
      text-align: center;
      max-width: 250px;
      margin-bottom: 2rem;
    }

    .feature h3 {
      margin-bottom: 0.5rem;
      color: #004080;
    }

    .practice {
      text-align: center;
      padding: 3rem 1.5rem;
      background-color: #eaf6ff;
    }

    .practice h2 {
      color: #004080;
      margin-bottom: 1rem;
    }

    .practice p {
      margin-bottom: 1.5rem;
    }


/* ---------- Headings ---------- */

 h1 {
      text-align: center;
      color: #004080;
      margin-bottom: 1.5rem;
    }

    h2 {
      text-align: center;
      color: #002366;
      margin-bottom: 30px;
    }



h3 {
	   font-size: 18px;
	   color: #002366;
	}
	
	
h4 {
    color: #334155;
    font-size: 20px;
    margin-top: 20px;
}


/* ---------- Paragraph ---------- */

p {
    font-size: 17px;
    text-align: justify;
    margin: 12px 0;
}


/* ---------- Lists ---------- */


 ul.topic-list {
      list-style-type: none;
      padding-left: 0;
    }

    ul.topic-list li {
      background-color: #e9f0ff;
      padding: 15px 20px;
      margin: 10px 0;
      border-left: 5px solid #002366;
      border-radius: 5px;
      transition: 0.3s ease;
    }

    ul.topic-list li:hover {
      background-color: #d4e3ff;
      cursor: pointer;
    }


/* ---------- Important Information ---------- */

.important {
    background-color: #fff7ed;
    border-left: 5px solid #f59e0b;
    padding: 15px 18px;
    margin: 20px 0;
}

.note {
    background-color: #eff6ff;
    border-left: 5px solid #2563eb;
    padding: 15px 18px;
    margin: 20px 0;
}

.warning {
    background-color: #fef2f2;
    border-left: 5px solid #dc2626;
    padding: 15px 18px;
    margin: 20px 0;
}

/* ---------- Tables ---------- */

.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background-color: white;
}

th {
    background-color: #1e3a8a;
    color: white;
    padding: 12px;
    border: 1px solid #d1d5db;
}

td {
    padding: 12px;
    border: 1px solid #d1d5db;
    vertical-align: top;
    overflow-wrap: anywhere;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}


/* ---------- Mobile Tables ---------- */

@media (max-width: 768px) {

    .table-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    th,
    td {
        padding: 7px;
        font-size: 13px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
}

/* ---------- Links ---------- */

main a {
    color: #1d4ed8;
    font-weight: 600;
}

main a:hover {
    color: #dc2626;
}


/* ---------- Cards ---------- */

 .container {
      padding: 40px 20px;
      max-width: 900px;
      margin: auto;
      background-color: #fff;
      border-radius: 10px;
      margin-top: 30px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }



 .note-card {
      background: white;
      padding: 1.2rem;
      margin-bottom: 1rem;
      border-left: 5px solid #004080;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .note-card h3 {
      margin: 0 0 0.5rem;
      color: #333;
    }

    .note-card p {
      margin: 0;
    }
	
/* ---------- Subject Cards ---------- */

.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.subject-card {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  background: #fff;
  border-left: 10px solid #004080;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 6px;
}

.subject-card h2 {
  margin: 0 0 0.6rem;
  font-size: 21px;
  color: #333;
}

.subject-card p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

  .subject-grid {
    grid-template-columns: 1fr;
  }

  .subject-card {
    max-width: 100%;
  }

}
		

/* ---------- Image ---------- */

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 6px;
}



 /* ---------- Footer ---------- */

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
}

.footer-links a:hover {
  color: #004080;
  text-decoration: underline;
}

.site-footer {
  margin-top: 40px;
  padding: 25px 30px;
  background-color: #f1f3f5;
  color: #333;
  text-align: left;
  border-top: 1px solid #ddd;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* ---------- Mobile Responsive ---------- */

@media (max-width: 768px) {

    header {
        padding: 16px 15px;
    }

    .logo {
        font-size: 26px;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

    nav a {
        padding: 11px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    main {
        margin: 20px auto;
        padding: 0 12px;
    }

    .page-title {
        padding: 18px;
    }

    .page-title h1 {
        font-size: 26px;
    }

    section {
        padding: 18px;
    }

    h3 {
        font-size: 21px;
    }

    p {
        font-size: 16px;
        text-align: left;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 650px;
    }
}


/* ---------- Small Mobile ---------- */

@media (max-width: 480px) {

    .logo {
        font-size: 23px;
    }

    .page-title h1 {
        font-size: 23px;
    }

    section {
        padding: 15px;
    }

    h3 {
        font-size: 19px;
    }

    p {
        font-size: 15px;
    }
}


/* =========================================
   HISTORY MOCK TEST
   ========================================= */

.mock-test-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
}


/* Test Heading */

.test-heading {
    text-align: center;
    margin-bottom: 25px;
}

.test-heading h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.test-heading p {
    font-size: 17px;
    line-height: 1.7;
}


/* Test Information */

.test-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.test-info div {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background: #f7f7f7;
}


/* Question Box */

.question-box {
    margin-bottom: 25px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.question-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 19px;
    line-height: 1.7;
}


/* Options */

.question-box label {
    display: block;
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.6;
    transition: 0.2s;
}

.question-box label:hover {
    background: #f2f2f2;
}

.question-box input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.1);
}


/* Submit */

.submit-section {
    text-align: center;
    margin: 35px 0;
}

.submit-section button {
    padding: 14px 40px;
    border: none;
    border-radius: 7px;
    font-size: 17px;
    cursor: pointer;
}


/* Result */

.result-box {
    display: none;
    margin: 30px 0;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.result-box h3 {
    margin-top: 0;
    font-size: 24px;
}

.result-box p {
    font-size: 17px;
    line-height: 1.7;
}


/* Footer */

.site-footer {
    text-align: center;
    padding: 25px;
    margin-top: 50px;
}


/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 768px) {

    .mock-test-container {
        width: 94%;
        margin: 25px auto;
    }

    .test-heading h1 {
        font-size: 25px;
    }

    .test-heading p {
        font-size: 15px;
    }

    .test-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .question-box {
        padding: 18px;
    }

    .question-box h3 {
        font-size: 17px;
    }

    .question-box label {
        font-size: 15px;
        padding: 11px;
    }

    .submit-section button {
        width: 100%;
        padding: 14px;
    }
}


@media (max-width: 450px) {

    .test-info {
        grid-template-columns: 1fr;
    }

    .test-heading h1 {
        font-size: 22px;
    }

}


.answer-feedback {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
}

.answer-feedback.correct {
    border: 2px solid #2e7d32;
    background: #e8f5e9;
}

.answer-feedback.wrong {
    border: 2px solid #c62828;
    background: #ffebee;
}

.answer-feedback.unattempted {
    border: 2px solid #ef6c00;
    background: #fff3e0;
}

.answer-feedback strong {
    font-size: 17px;
}

.answer-feedback p {
    margin: 6px 0 0;
}

/* ---------- Privacy Policy ---------- */

.privacy-page {
  max-width: 950px;
  margin: 2rem auto;
  padding: 0 1.2rem;
}

.privacy-policy {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.privacy-policy h1 {
  color: #004080;
  margin-bottom: 1rem;
}

.privacy-policy h2 {
  color: #002366;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}

.privacy-policy p {
  margin-bottom: 1rem;
}

.privacy-policy a {
  color: #004080;
}

@media (max-width: 600px) {

  .privacy-page {
    padding: 0 1rem;
  }

  .privacy-policy {
    padding: 1.2rem;
  }

  .privacy-policy h1 {
    font-size: 1.8rem;
  }

}

/* ---------- Disclaimer ---------- */

.disclaimer-page {
  max-width: 950px;
  margin: 2rem auto;
  padding: 0 1.2rem;
}

.disclaimer {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.disclaimer h1 {
  color: #004080;
  margin-bottom: 1rem;
}

.disclaimer h2 {
  color: #002366;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}

.disclaimer p {
  margin-bottom: 1rem;
}

.disclaimer a {
  color: #004080;
}

@media (max-width: 600px) {

  .disclaimer-page {
    padding: 0 1rem;
  }

  .disclaimer {
    padding: 1.2rem;
  }

  .disclaimer h1 {
    font-size: 1.8rem;
  }

}

/* ---------- About Page ---------- */

.about-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
}

.about-page h1 {
    margin-bottom: 25px;
    text-align: center;
}

.about-page h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.about-page p {
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-page ul {
    margin: 10px 0 20px 25px;
}

.about-page li {
    line-height: 1.8;
    margin-bottom: 10px;
}

.about-page a {
    font-weight: 600;
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {

    .about-page {
        margin: 20px auto;
        padding: 20px;
    }

    .about-page h1 {
        font-size: 1.7rem;
    }

    .about-page h3 {
        font-size: 1.2rem;
    }

    .about-page p,
    .about-page li {
        font-size: 0.95rem;
    }

}

/* ---------- Contact Page ---------- */

.contact-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
}

.contact-page h1 {
    margin-bottom: 25px;
    text-align: center;
}

.contact-page h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.contact-page p {
    line-height: 1.8;
    margin-bottom: 18px;
}

.contact-page ul {
    margin: 10px 0 20px 25px;
}

.contact-page li {
    line-height: 1.8;
    margin-bottom: 8px;
}


/* ---------- Contact Form ---------- */

.contact-page form {
    margin-top: 25px;
}

.contact-page label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-page input,
.contact-page textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-page textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-page button {
    margin-top: 18px;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    background-color: #004080;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.contact-page button:hover {
    opacity: 0.9;
}

.contact-page button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ---------- Form Messages ---------- */

.form-message {
    display: none;
    margin-top: 25px;
    padding: 18px;
    border-radius: 5px;
}

.success-message {
    background-color: #eeeeee;
}

.error-message {
    background-color: #eeeeee;
}

/* ================================
   RIGHT SIDE MENU
   ================================ */

.menu {
  margin-left: auto;
}

/* Menu Button */

.menu-btn {
  background: #004080;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}

.menu-btn:hover {
  background: #004080;
}

/* Dark Background */

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9998;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Right Side Menu */

.menu-content {
  position: fixed;

  /* Header ko cover nahi karega */
  top: 110px;

  right: -60vw;

  /* Screen ka sirf 60% */
  width: 60vw;

  height: calc(100vh - 110px);

  background: white;

  z-index: 9999;

  overflow-y: auto;

  box-shadow: -5px 0 18px rgba(0,0,0,0.25);

  transition: right 0.3s ease;
}

@media (min-width: 769px) {
  .menu-content {
    width: 20%;
  }
}

/* Menu Open */

.menu-content.show {
  right: 0;
}

/* Menu Items */

.menu-content a {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 15px 18px;

  color: #333;

  background: white;

  text-decoration: none;

  font-size: 17px;

  border-bottom: 1px solid #eeeeee;
}

.menu-content a:hover {
  background: #f3f5f7;
}
/* Active Menu Item */

.menu-content a.active {
  background: #e8f0f8;
  color: #004080;
  font-weight: 600;
}


/* Icons */

.menu-icon {
  width: 28px;

  text-align: center;

  font-size: 23px;

  color: #6d9aaa;

  flex-shrink: 0;
}

/* =========================================
POLITY INDEX PAGE
Additional Professional Sections
========================================= */

/* ---------- Breadcrumb ---------- */

.breadcrumb {
max-width: 900px;
margin: 20px auto 0;
padding: 0 20px;
font-size: 14px;
color: #666;
}

.breadcrumb a {
color: #004080;
text-decoration: none;
}

.breadcrumb a:hover {
text-decoration: underline;
}

.breadcrumb span {
margin: 0 5px;
}

/* ---------- Intro Section ---------- */

.intro-section {
margin: 25px 0;
padding: 20px;
background: #f8fafc;
border-left: 4px solid #004080;
border-radius: 6px;
}

.intro-section p {
margin: 0 0 12px;
line-height: 1.8;
color: #333;
}

.intro-section p:last-child {
margin-bottom: 0;
}

/* ---------- Study Guide ---------- */

.study-guide {
margin: 30px 0;
padding: 22px;
background: #f8fafc;
border-radius: 8px;
}

.study-guide h2 {
margin-top: 0;
color: #004080;
font-size: 1.35rem;
}

.study-guide p {
line-height: 1.8;
color: #333;
}

.study-guide ul {
margin-top: 15px;
padding-left: 22px;
}

.study-guide li {
margin-bottom: 9px;
line-height: 1.6;
}

/* ---------- Chapter Section ---------- */

.chapter-section {
margin-top: 35px;
}

.chapter-section h2 {
color: #004080;
font-size: 1.4rem;
margin-bottom: 8px;
}

.chapter-section > p {
line-height: 1.8;
color: #444;
margin-bottom: 22px;
}

/* ---------- Preparation Section ---------- */

.preparation-section {
margin: 35px 0;
padding: 22px;
background: #f8fafc;
border-radius: 8px;
}

.preparation-section h2 {
margin-top: 0;
color: #004080;
font-size: 1.35rem;
}

.preparation-section p {
line-height: 1.8;
color: #333;
margin-bottom: 12px;
}

/* ---------- FAQ Section ---------- */

.faq-section {
margin: 35px 0 10px;
padding: 22px;
background: #f8fafc;
border-radius: 8px;
}

.faq-section h2 {
margin-top: 0;
margin-bottom: 22px;
color: #004080;
font-size: 1.35rem;
}

.faq-section h3 {
margin-top: 20px;
margin-bottom: 8px;
font-size: 1.05rem;
color: #222;
}

.faq-section p {
line-height: 1.8;
color: #444;
margin-bottom: 16px;
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {

.breadcrumb {
margin-top: 15px;
padding: 0 15px;
font-size: 13px;
}

.intro-section,
.study-guide,
.preparation-section,
.faq-section {
padding: 16px;
margin-top: 22px;
}

.study-guide h2,
.preparation-section h2,
.faq-section h2,
.chapter-section h2 {
font-size: 1.2rem;
}

.intro-section p,
.study-guide p,
.preparation-section p,
.faq-section p,
.chapter-section > p {
line-height: 1.7;
}

}
