/* ==============================
   SarkariJobIndia – Final Merged CSS
   (Desktop + Mobile Navbar + All Styles)
   ============================== */

/* ---------- Variables ---------- */
:root {
  --saffron: #ff9933;
  --green: #138808;
  --blue: #0b3c5d;
  --dark-blue: #06273d;
  --white: #ffffff;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(to bottom, #f9fafc, #eef1f5);
  color: #222;
}

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%;
}

/* ================= NAVBAR ================= */
.navbar {
  background: linear-gradient(90deg, var(--blue), var(--dark-blue));
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.navbar li {
  position: relative;
  padding: 14px 20px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.navbar i {
  margin-right: 6px;
  font-size: 14px;
}

/* Desktop hover */
.navbar li:hover {
  background: linear-gradient(90deg, var(--saffron), #ffb366);
  color: #000;
}

/* ---------- Dropdown (Desktop) ---------- */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: linear-gradient(90deg, var(--blue), var(--dark-blue));
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
}

.dropdown-content a:hover {
  background: var(--saffron);
  color: #000;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ================= MOBILE NAV HEADER ================= */
.nav-header {
  display: none;
  padding: 14px 20px;
  color: #fff;
  font-size: 20px;
}

.menu-toggle {
  cursor: pointer;
}

/* Hide arrow on desktop */
@media (min-width: 769px) {
  .arrow {
    display: none !important;
  }
}

/* ================= MAIN CONTENT ================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}

.center-text {
  text-align: center;
  margin-bottom: 10px;
}

.black-text {
  color: #000;
}

/* ================= TABLES ================= */
.table-wrap {
  margin-bottom: 25px;
  overflow-x: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

/* Blank table */
.blank-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.blank-table td {
  width: 50%;
  border: 1px solid #ccc;
  height: 40px;
  padding-left: 7px;
}

/* Important links table */
.links-table {
  width: 100%;
  border-collapse: collapse;
}

.links-table th,
.links-table td {
  border: 1px solid #ccc;
  padding: 12px;
  font-size: 14px;
}

.links-table th {
  width: 40%;
  background: #f1f5f9;
  text-align: left;
}

.links-table a {
  color: var(--blue);
  font-weight: 600;
}

.links-table a:hover {
  text-decoration: underline;
}

.imp-heading {
  margin-bottom: 10px;
  font-size: 18px;
  color: #000;
}

.final-note {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* ================= FOOTER ================= */
.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;
  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;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= MOBILE ONLY ================= */
@media (max-width: 768px) {

  /* Header */
  .nav-header {
    display: block;
    background: linear-gradient(90deg, var(--blue), var(--dark-blue));
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--dark-blue));
  }

  .navbar li:hover {
    background: linear-gradient(90deg, var(--blue), var(--dark-blue));
    color: #fff;
  }

  .navbar li i {
    min-width: 22px;
    text-align: center;
  }

  .navbar li a {
    color: #fff;
  }

  /* Dropdown mobile */
  .navbar li.dropdown {
    display: block;
    padding: 0;
    flex-direction: column;
  }

  .nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
  }

  .nav-item .left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .arrow {
    font-size: 12px;
    transition: transform 0.25s ease;
  }

  .dropdown.open .arrow {
    transform: rotate(180deg);
  }

  .dropdown-content {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    background: linear-gradient(90deg, var(--blue), var(--dark-blue));
    box-shadow: none;
    border-radius: 0;
  }

  .dropdown.open .dropdown-content {
    max-height: none;
  }

  .dropdown-content a {
    display: block;
    padding: 12px 20px 12px 54px;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  /* Text + tables */
  .center-text {
    font-size: 18px;
  }

  .black-text {
    font-size: 15px;
  }

  .blank-table {
    font-size: 13px;
  }

  .blank-table td {
    padding: 7px;
  }

  .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;
  }
}
