:root {
  --primary: #0a4e8f;
  --muted: #6b7280;
  --bg: #ffffff;
  --max-width: 1100px;
  --container-pad: 16px;
  --radius: 10px;
  --accent: #ef4444;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

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

html,
body {
  height: 100%;
  background: var(--bg);
  color: #111;
}

.container {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: var(--container-pad);
}

.header {
  display: flex;
  align-items: center;
  justify-content: center; /* centers the logo horizontally */
  padding: 12px 0;
}

.logo {
  height: 64px;
  width: auto;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.tagline {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 12px;
  background: linear-gradient(180deg, #f8fafc, white);
  border-radius: 8px;
  margin: 16px 0;
}

.hero h1 {
  font-size: 1.6rem;
}

.lead {
  color: var(--muted);
}

.articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.card {
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  margin-top: 24px;
  padding: 18px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer .links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .articles {
    grid-template-columns: 1fr;
  }
  .header {
    gap: 10px;
  }
  .site-title {
    font-size: 1.1rem;
  }
  .logo {
    height: 52px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.news-list li {
  border: 1px solid #eee; /* changed from #ddd to match new lighter border */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg); /* white background */
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.news-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--primary);
}

.news-list a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.news-list figure {
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.news-list figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-list li:hover figure img {
  transform: scale(1.05);
}

.news-list h3 {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  line-height: 1.4;
  color: var(--primary); /* updated to primary color */
}

.news-list .update-date {
  display: block;
  font-size: 0.85rem;
  color: var(--muted); /* muted color for dates */
  padding: 0 1rem 0.75rem;
}

/* Responsive */
@media(min-width: 768px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1200px) {
  .news-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =======================
   Article Page Styles
   Matches new theme colors & fonts
======================= */
.custom-article {
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  font-family: inherit; /* inherits Inter/system-ui from :root */
  line-height: 1.7;
  color: #111; /* base text */
  background: var(--bg);
}

/* ------------------ H1 ------------------ */
.custom-article h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary);
  line-height: 1.3;
  position: relative;
}

/* H1 subtle news-style underline */
.custom-article h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 0.6rem auto 0 auto;
  border-radius: 2px;
  opacity: 0.85;
}

/* ------------------ Figure ------------------ */
.custom-article figure {
  margin: 1.25rem 0;
  text-align: center;
}

.custom-article figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ------------------ Section & H2 ------------------ */
.custom-article section {
  margin: 1.75rem 0;
}

.custom-article section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 0.6rem;
  position: relative;
  line-height: 1.4;
  padding-bottom: 0.4rem;
}

/* H2 subtle underline */
.custom-article section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.7;
}

.custom-article section p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ------------------ Responsive Typography ------------------ */
@media (min-width: 768px) {
  .custom-article h1 {
    font-size: 2.3rem;
  }

  .custom-article section h2 {
    font-size: 1.6rem;
  }

  .custom-article section p {
    font-size: 1.05rem;
  }
}

@media (min-width: 1200px) {
  .custom-article {
    padding: 2rem;
  }

  .custom-article h1 {
    font-size: 2.3rem;
  }

  .custom-article section h2 {
    font-size: 1.8rem;
  }

  .custom-article section p {
    font-size: 1.15rem;
  }
}


/* Base styling for H1 and H2 */
h1, h2 {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  font-weight: 700;
  text-align: center;
  color: #222;
}

/* H1 default (desktop) */
h1 {
  font-size: 2.5rem; /* ~40px */
  color: #111;
}

/* H2 default (desktop) */
h2 {
  font-size: 1.5rem; /* ~24px */
  font-weight: 600;
  color: #444;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem; /* ~28px */
  }
  h2 {
    font-size: 1.2rem; /* ~19px */
  }
}

/* Very small screens */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem; /* ~24px */
  }
  h2 {
    font-size: 1rem; /* ~16px */
  }
}

/* Optional: Add subtle underline effect for news feel */
h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #e63946;
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

 body {
        background: #fff;
        font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif;
        margin: 0;
        padding: 0;
        color: #333;
    }
    .container {
        max-width: 900px;
        margin: 32px auto;
        background: #f9f9f9;
        border-radius: 18px;
        box-shadow: 0 4px 24px #ff980030;
        padding: 32px 24px;
        animation: fadeIn 1.2s;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.97);}
        to { opacity: 1; transform: scale(1);}
    }
    h1 {
        color: #ff5722;
        text-align: center;
        margin-bottom: 28px;
        font-size: 2rem;
        letter-spacing: 1px;
        text-shadow: 1px 1px 6px #ff980040;
    }
    .job-details {
        font-size: 1.08rem;
        line-height: 1.8;
        animation: fadeInUp 0.7s;
    }
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px);}
        to { opacity: 1; transform: translateY(0);}
    }
    .highlight {
        background: #e3f2fd;
        color: #d32f2f;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 6px;
    }
    .apply-link {
        display: inline-block;
        margin: 18px 0 0 0;
        padding: 8px 18px;
        background: linear-gradient(90deg, #ffb74d 0%, #ff9800 100%);
        color: #fff;
        border-radius: 18px;
        font-weight: bold;
        text-decoration: none;
        box-shadow: 0 2px 8px #ff980030;
        transition: background 0.3s, color 0.3s, transform 0.2s;
    }
    .apply-link:hover {
        background: #fff;
        color: #ff9800;
        transform: scale(1.08);
        box-shadow: 0 2px 8px #ff980080;
    }
    .footer-links {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .footer-btn {
        background: linear-gradient(90deg, #ffb74d 0%, #ff9800 100%);
        color: #000000;
        padding: 7px 18px;
        border-radius: 18px;
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        box-shadow: 0 2px 8px #ff980030;
        transition: background 0.3s, color 0.3s, transform 0.2s;
        border: none;
        outline: none;
        cursor: pointer;
        animation: fadeIn 1s;
    }
    .footer-btn:hover {
        background: #fff;
        color: #ff9800;
        transform: scale(1.08);
        box-shadow: 0 2px 8px #ff980080;
    }
    ul {
        margin: 0 0 18px 0;
        padding-left: 18px;
    }
    .section-title {
        color: #ff9800;
        font-weight: bold;
        margin-top: 18px;
    }
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 18px;
        background: #fff;
        overflow-x: auto;
        display: block;
    }
    th, td {
        border: 1px solid #ffcc80;
        padding: 8px 10px;
        text-align: left;
    }
    th {
        background: #ffe0b2;
        color: #e65100;
    }
    tr:nth-child(even) {
        background: #f5f5f5;
    }
    /* Responsive styles */
    @media (max-width: 900px) {
        .container { max-width: 98vw; padding: 18px 2vw;}
        h1 { font-size: 1.3rem;}
        .footer-links { flex-direction: column; gap: 8px;}
        .footer-btn { width: 100%; text-align: center;}
        img[alt="Govt Job Updates 2025 - Sarkari Naukri Portal Logo"] { max-width: 180px;}
        header { flex-direction: column; padding: 18px 8px 12px 8px;}
    }
    @media (max-width: 600px) {
        .container, main { padding: 8px 2vw;}
        h1 { font-size: 1rem;}
        .footer-btn { font-size: 0.95rem; padding: 7px 0;}
        img[alt="Govt Job Updates 2025 - Sarkari Naukri Portal Logo"] { max-width: 120px;}
        .header-social { flex-direction: row; flex-wrap: wrap; gap: 6px;}
        #main-menu {
            flex-wrap: wrap;
            gap: 6px !important;
            font-size: 0.95rem !important;
            justify-content: flex-start;
        }
        #main-menu li {
            margin-bottom: 0 !important;
            min-width: 110px;
            padding: 0;
        }
        #main-menu li a {
            padding: 6px 8px !important;
            font-size: 0.95rem !important;
            border-radius: 8px;
            text-align: center;
            word-break: break-word;
        }
        table {
            font-size: 0.85rem;
            width: 100%;
            overflow-x: auto;
            display: block;
        }
        th, td {
            padding: 7px 4px !important;
            font-size: 0.85rem;
        }
    }
    @media (max-width: 400px) {
        #main-menu li {
            min-width: 90px;
        }
        #main-menu li a {
            font-size: 0.89rem !important;
            padding: 4px 4px !important;
        }
    }
    /* Make info boxes and lists mobile friendly */
    @media (max-width: 600px) {
        .job-details ul, .job-details li {
            font-size: 0.95rem;
            padding-left: 0;
            margin-left: 0;
        }
        .job-details .section-title {
            font-size: 1rem;
        }
        .job-details p {
            font-size: 0.95rem;
        }
        .apply-link {
            padding: 7px 12px;
            font-size: 0.95rem;
        }
    }
    /* Make info box below main responsive */
    @media (max-width: 600px) {
        .info-box {
            max-width: 98vw !important;
            padding: 12px 4vw !important;
            font-size: 0.95rem !important;
        }
        .info-box ul li {
            padding: 10px 8px !important;
            font-size: 0.95rem !important;
        }
    }
    #main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    font-size: 1rem;
}

#main-menu li {
    margin-bottom: 0;
    min-width: 120px;
}

#main-menu li a {
    color: #e65100;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: block;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 8px #ff980020;
}

#main-menu li a:hover,
#main-menu li a:focus {
    background: #ffe0b2;
    color: #d84315;
    text-decoration: underline;
}

/* Responsive styles for menu */
@media (max-width: 900px) {
    #main-menu {
        gap: 10px !important;
        font-size: 0.98rem !important;
    }
    #main-menu li {
        min-width: 110px;
    }
    #main-menu li a {
        padding: 7px 12px !important;
        font-size: 0.98rem !important;
    }
}

@media (max-width: 600px) {
    #main-menu {
        gap: 6px !important;
        font-size: 0.95rem !important;
        justify-content: flex-start;
    }
    #main-menu li {
        min-width: 100px;
        padding: 0;
    }
    #main-menu li a {
        padding: 6px 8px !important;
        font-size: 0.95rem !important;
        border-radius: 8px;
        text-align: center;
        word-break: break-word;
    }
}

@media (max-width: 400px) {
    #main-menu li {
        min-width: 80px;
    }
    #main-menu li a {
        font-size: 0.89rem !important;
        padding: 4px 4px !important;
    }
}

    @media (max-width: 800px) {
        #main-menu {
            flex-wrap: wrap;
            gap: 10px !important;
            font-size: 0.98rem !important;
        }
        #main-menu li {
            margin-bottom: 0 !important;
        }
        #main-menu li a {
            padding: 7px 12px !important;
            font-size: 0.98rem !important;
        }
    }
    @media (max-width: 500px) {
        #main-menu {
            flex-wrap: wrap;
            gap: 6px !important;
            font-size: 0.89rem !important;
        }
        #main-menu li a {
            padding: 5px 8px !important;
            font-size: 0.89rem !important;
        }
    }

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

    body {
      font-family: "Segoe UI", Tahoma, sans-serif;
      line-height: 1.6;
      background: #f9f9f9;
      color: #333;
      padding: 20px;
    }

    main {
      max-width: 900px;
      margin: auto;
    }

    section {
      background: #fff;
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 20px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    }

    h1 {
      font-size: 1.8rem;
      text-align: center;
      margin-bottom: 25px;
      color: #d32f2f;
    }

    h2 {
      font-size: 1.3rem;
      margin: 15px 0 8px;
      color: #1a73e8;
    }

    p {
      margin-bottom: 12px;
    }

    .meta {
      font-size: 0.95rem;
      font-weight: 500;
      margin: 20px 0;
      color: #2700e8;
    }

    a.btn {
      display: inline-block;
      margin-top: 12px;
      padding: 10px 18px;
      background: #1a73e8;
      color: #fff;
      text-decoration: none;
      border-radius: 8px;
      transition: background 0.3s;
    }

    a.btn:hover {
      background: #1558b0;
    }

    @media (max-width: 600px) {
      body {
        padding: 10px;
      }
      h1 {
        font-size: 1.4rem;
      }
      h2 {
        font-size: 1.1rem;
      }
    }

    /* Scoped CSS to avoid affecting other elements */
.custom-article {
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.custom-article h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: #222;
}

.custom-article figure {
  margin: 1rem 0;
  text-align: center;
}

.custom-article figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.custom-article section {
  margin: 1.5rem 0;
}

.custom-article section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.custom-article section p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

/* Responsive Typography */
@media (min-width: 768px) {
  .custom-article h1 {
    font-size: 2.2rem;
  }

  .custom-article section h2 {
    font-size: 1.6rem;
  }

  .custom-article section p {
    font-size: 1.1rem;
  }
}

@media (min-width: 1200px) {
  .custom-article {
    padding: 2rem;
  }

  .custom-article h1 {
    font-size: 2.5rem;
  }

  .custom-article section h2 {
    font-size: 1.8rem;
  }

  .custom-article section p {
    font-size: 1.2rem;
  }
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.news-list li {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-list a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.news-list figure {
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.news-list figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-list li:hover figure img {
  transform: scale(1.05);
}

.news-list h3 {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  line-height: 1.4;
  color: #111;
}

.news-list .update-date {
  display: block;
  font-size: 0.85rem;
  color: #666;
  padding: 0 1rem 0.75rem;
}

/* Responsive */
@media(min-width: 768px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1200px) {
  .news-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
