* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* HEADER */
.header {
  background: #000;
}

.menu {
  list-style: none;
  display: flex;
}

/* TOP MENU */
.menu > li {
  position: relative;
}

.menu > li > a {
  display: block;
  padding: 15px 22px;
  color: #fff;
  text-decoration: none;
}

.menu > li > a:hover {
  background: green;
}

/* SUBMENU BASE */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #000;
  display: none;               /* 🔴 HIDDEN BY DEFAULT */
  z-index: 999;
}

/* RIGHT SIDE OPEN */
.submenu.right {
  top: 0;
  left: 100%;
}

/* SUBMENU LINKS */
.submenu li {
  position: relative;
}

.submenu li a {
  display: block;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #222;
}

.submenu li a:hover {
  background: green;
}

/* SHOW ON HOVER (DESKTOP) */
.has-sub:hover > .submenu {
  display: block;              /* ✅ display:block */
}

/* MOBILE */
@media (max-width: 768px) {

  .menu {
    flex-direction: column;
  }

  .submenu {
    position: static;
  }
}
/* CONTACT PAGE */
.contact-section {
  padding: 60px 16px;
  background: #f9fafb;
}

.contact-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* LEFT INFO */
.contact-info h1 {
  font-size: 32px;
  margin-bottom: 14px;
}

.contact-info p {
  color: #555;
  margin-bottom: 24px;
}

.info-box {
  margin-bottom: 14px;
  font-size: 15px;
}

/* FORM */
.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.contact-form h2 {
  margin-bottom: 20px;
}

.contact-form label {
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.contact-form button {
  background: green;
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  font-size: 15px;
  cursor: pointer;
}

.contact-form button:hover {
  background: darkgreen;
}

/* FOOTER */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 16px;
  margin-top: 60px;
}

/* MOBILE */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}
body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #000;
  padding: 20px;
}

.page-title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
}

/* TABLE */
.table-container {
  overflow-x: auto;
}

.pyq-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.pyq-table th,
.pyq-table td {
  border: 1px solid #999;
  padding: 10px;
  font-size: 14px;
}

.pyq-table th {
  background: #f7f1e3;
  text-align: center;
  font-weight: bold;
}

.pyq-table td:first-child {
  text-align: left;
}

/* LINKS */
.pyq-table a {
  color: #0033cc;
  text-decoration: none;
  font-weight: 500;
}

.pyq-table a:hover {
  text-decoration: underline;
}

/* SOLVED PAPER */
.pyq-table .solved {
  color: green;
  font-weight: bold;
}

/* MOBILE */
@media (max-width: 768px) {
  .page-title {
    font-size: 20px;
  }
}

/* main body */
.main-content {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero p {
  color: #555;
  font-size: 16px;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.exam-card {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 6px;
  background: #fff;
}

.exam-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.exam-card ul {
  list-style: none;
  padding: 0;
}

.exam-card ul li {
  margin-bottom: 6px;
}

.exam-card ul li a {
  text-decoration: none;
  color: #0066cc;
}

.exam-card ul li a:hover {
  text-decoration: underline;
}

.why-pyq {
  margin-top: 40px;
  padding: 30px;
  background: #f8f8f8;
  border-radius: 6px;
}

.why-pyq h2 {
  margin-bottom: 15px;
}

.why-pyq ul {
  list-style: none;
  padding: 0;
}

.why-pyq ul li {
  margin-bottom: 8px;
}

/* main body table cgl page */

/* =========================
   PAGE WRAPPER
========================= */
.page-wrapper {
  padding: 14px;
  background: #f4f6f8;
}

/* =========================
   CARD DESIGN
========================= */
.intro-section,
.benefits,
.syllabus-context,
.faq,
.internal-links {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* =========================
   TYPOGRAPHY
========================= */
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.intro-text {
  font-size: 15px;
  color: #444;
}

h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

h3 {
  font-size: 15px;
  margin-top: 12px;
  color: #222;
}

/* =========================
   BENEFITS LIST
========================= */
.benefits ul {
  padding-left: 0;
  list-style: none;
}

.benefits li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
  font-size: 14px;
}

.benefits li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-weight: bold;
}

/* =========================
   TABLE CARD LOOK
========================= */
.table-container {
  background: #ffffff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow-x: auto;
}

/* =========================
   BUTTON STYLE
========================= */
.pyq-table a {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pyq-table a:not(.solved) {
  background: #1565c0;
  color: #fff;
}

.pyq-table a.solved {
  background: #2e7d32;
  color: #fff;
}

/* =========================
   FAQ STYLE
========================= */
.faq p {
  font-size: 14px;
  color: #444;
}

/* =========================
   INTERNAL LINKS
========================= */
.internal-links ul {
  list-style: none;
  padding-left: 0;
}

.internal-links li {
  margin-bottom: 6px;
}

.internal-links a {
  color: #1565c0;
  font-weight: 500;
  text-decoration: none;
}

/* =========================
   DESKTOP ENHANCEMENT
========================= */
@media (min-width: 768px) {
  .page-wrapper {
    max-width: 1100px;
    margin: auto;
  }

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



