* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
}

header {
  background: #fff;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo span {
  color: #2a4d8f;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    gap: 10px;
    display: none;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  nav.active { display: flex; }
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 30px;
/*  flex-wrap: wrap;   */
  background: #edf5ffe0;
  text-align: center;
}

.hero-text.full-width {
  max-width: 900px; /* stretch wider */
  width: 100%;
}

.hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.1rem;
  color: #555;
}

.search-wrapper {
  margin: 25px auto 0;
  max-width: 700px; /* make search bar larger */
}



.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
}

.hero-buttons a {
  background: #2a4d8f;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.hero-img {
  flex: 1;
  max-width: 400px;
  text-align: center;
}

.hero-img img {
  max-width: 100%;
}

.section-title {
  padding: 30px 20px 10px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center; /* Center align the section title */
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 20px 40px;
  justify-content: center;
  grid-template-columns: repeat(2, 1fr);
}

.job-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push footer buttons down */
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  min-height: 200px; /* Ensures equal height */
}

.job-card-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

/* Highlight Last Date */
.last-date {
  color: rgb(57, 131, 243);
  font-weight: bold;
}

/* eligbility */
.important-info {
  color: #2a4d8f;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 5px;
}


.apply-btn {
  background-color: #2a4d8f;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
}

.view-btn {
  background-color: #eee;
  color: #333;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
}

.search-wrapper {
  margin-top: 20px;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border: 2px solid #ccc;
  border-radius: 50px;
  padding: 12px 18px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
}

.search-bar button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

#suggestions {
  list-style: none;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  border: 1px solid #ccc;
  max-height: 250px;
  overflow-y: auto;
  padding: 0;
  position: absolute;
  width: 100%;
}

#suggestions li {
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

/*  .site-footer {
  background: #0f172a;
  color: white;
  padding: 50px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}  */

.view-more-container {
  display: flex;
  justify-content: center; /* Default → center */
  padding: 10px 20px 20px;
}

.view-more-btn {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #1e3a8a; /* Navy blue */
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background: #0d2a6b;
  transform: translateY(-2px);
}



.job-card-content {
  flex-grow: 1; /* Content takes remaining space */
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

/* Tablets → 3 columns */
@media (min-width: 768px) {
  .job-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktops → 4 columns */
@media (min-width: 1024px) {
  .job-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}



                                   /* ===== Footer Styles ===== */


.site-footer {
  background: #0f172a;
  color: #ffffff;
  padding: 50px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #ffcb05;
}

.footer-column p,
.footer-column ul {
  font-size: 14px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #ffcb05;
}

.social-links a {
  margin-right: 10px;
  display: inline-block;
}

.social-links img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}

.social-links a:hover img {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    gap: 10px; /* small gap instead of default stacking margin */
  }
}

/* Improve job-card layout for small screens */
.job-card small {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
}


/* Better styling for Last Date */
.last-date {
  color: rgb(39, 139, 201);       /* Red text */
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

/* Make sure buttons stack nicely on small screens */
@media (max-width: 500px) {
  .job-card-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .apply-btn, .view-btn {
    text-align: center;
    width: 100%;
  }
}

.job-grid { grid-template-columns: repeat(2, 1fr); } /* default = 2 */
@media (min-width: 768px) { .job-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .job-grid { grid-template-columns: repeat(4, 1fr); } }
