
/* =========================================
   1. GLOBAL RESETS & VARIABLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}








/* ================================
    TOP BAR (CONTACT INFO)
================================ */
.top-bar {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* ================================
    MAIN NAVBAR
================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: #ffffff;
  color: #000000;
  font-weight: bold;
  position: relative;
  z-index: 3;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Navbar Links */
.navbar-links {
  display: flex;
  gap: 20px;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-links a {
  color: #000000;
  text-decoration: none;
  font-size: 1rem;
}

/* ================================
    SUBMENU (DESKTOP)
================================ */
.navbar-links .has-submenu {
  position: relative;
}

.navbar-links .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  width: 200px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar-links .submenu a {
  display: block;
  padding: 6px 10px;
  color: #000000;
  text-decoration: none;
}

.navbar-links .submenu a:hover {
  background-color: #2c58e6;
  color: #fff;
}

/* Show submenu on hover (desktop only) */
.navbar-links .has-submenu:hover .submenu {
  display: block;
}

/* ================================
    DEMO BUTTON
================================ */
.demo-button {
  background: linear-gradient(180deg, #2449b3, #7007b1);
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.demo-button:hover {
  background-color: #2449b3;
}

/* ================================
    TOGGLE BUTTON (MOBILE)
================================ */
.toggle-button {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ================================
    RESPONSIVE DESIGN
================================ */
@media (max-width: 768px) {

  .toggle-button {
    display: block;
  }

  .navbar .logo #companyname {
    font-size: 18px;
  }

  /* FULL SCREEN MENU */
  .navbar-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
    color: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    gap: 20px;
    z-index: 999;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-links a {
    color: black;
    font-size: 1.2rem;
    padding: 10px;
  }

  /* CLOSE BUTTON (ONLY MOBILE) */
  .close-button {
    align-self: flex-end;
    font-size: 1.8rem;
    cursor: pointer;
    color: black;
  }

  /* ================================
      MOBILE SUBMENU FIX
   ================================= */
  .navbar-links .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
    padding-left: 20px;
  }

  /* SHOW SUBMENU WHEN PARENT HAS "open" CLASS */
  .navbar-links .has-submenu.open .submenu {
    display: block;
  }

  /* **CORRECTION APPLIED HERE:** REMOVED THE INCORRECT HOVER RULE */
}




/* =========================================
   3. CAREER PAGE SPECIFIC STYLES
   ========================================= */

/* Career Hero Section */
.career-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    /* Make sure this image exists in your images folder */
    background-image: url('images/hmssection2.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-align: center;
    padding: 0 20px;
    
    
}

.career-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* MSB Brand Gradient Overlay */
    background: linear-gradient(to right, rgba(36, 73, 179, 0.85), rgba(112, 7, 177, 0.85));
    z-index: 1;
   
}

.career-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    
}

.career-hero h1 {
    font-size: 2.3rem;
    margin-bottom: 15px;
    font-family: "Poppins", sans-serif;
}

.career-hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}


/* Style the View Open Roles button (a tag) */
.career-hero .button {
    display: inline-block;
    padding: 12px 30px;
    background: #2449b3; /* Brand color */
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover state for the button */
.career-hero .button:hover {
    background-color: #7007b1; /* Lighter purple on hover */
    transform: translateY(-2px); /* Slight elevation effect */
}

/* Focus state for better accessibility */
.career-hero .button:focus {
    outline: 2px solid #2449b3;
    outline-offset: 4px;
}

/* Active state for pressing effect */
.career-hero .button:active {
    background-color: #1c3b78; /* Even darker on active click */
    transform: translateY(1px); /* Depressed effect */
}











/* Culture & Values Section */
.culture-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.culture-section h2 {
    font-size: 2.2rem;
    color: #0000ff;
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
}

.culture-section p.subtitle {
    font-size: 1.1rem;
    color: #0f0f0f;
    margin-bottom: 40px;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.value-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.value-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    /* Gradient Text for Icons */
    background: linear-gradient(180deg, #2449b3, #7007b1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standard property */
}

.value-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Perks Section */
.perks-section {
    background-color: #fffdfd;
    padding: 50px 20px;
    text-align: center;
}

.perks-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.perk-item {
    width: 180px;
    text-align: center;
}

.perk-item .icon-circle {
    width: 70px;
    height: 70px;
    background: #e8f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.perk-item i {
    color: #2449b3;
    font-size: 1.5rem;
}

.perk-item h4 {
    color: #333;
    margin-bottom: 5px;
}


/* Job Listings Section */
.jobs-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.jobs-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #0000ff;
    margin-bottom: 40px;
    font-family: "Poppins", sans-serif;
}


/* Styling for Apply Now buttons */
.jobs-section .button {
  display: inline-block;
  background: linear-gradient(180deg, #2449b3, #7007b1);
  color: white;
  font-size: 1.1rem;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover effect for buttons */
.jobs-section .button:hover {
  background-color: #1a387d; /* Darker blue for hover */
  transform: scale(1.05); /* Slight zoom effect */
}

/* Focus effect for accessibility */
.jobs-section .button:focus {
  outline: 2px solid #ffd700; /* Gold outline on focus */
  outline-offset: 4px;
}

.job-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-left: 5px solid #2449b3; /* Brand Blue Accent */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.job-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.job-info h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 8px;
}

.job-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #000000;
}

.job-details span i {
    margin-right: 5px;
    color: #2449b3;
}



/* CTA Banner */
.cta-banner {
    background: linear-gradient(180deg, #2449b3, #7007b1);
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-radius: 0; 
}

.cta-banner h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-banner .button-white {
    background: white;
    color: #2449b3;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    transition: background-color 0.3s;
}

.cta-banner .button-white:hover {
    background: #f0f0f0;
}










/* Base Footer Styles (Mobile-First / Default) */
.footer {
    width: 100%;
    background: #000036;
    position: relative;
    color: #fff;
    /* Reduced padding slightly for height reduction */
    padding: 12px 10px 10px 10px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Reduced gap slightly for height reduction */
    gap: 25px; 
    margin: 0;
    text-align: center;
    /* height: auto; is good, keeping it */
    height: auto; 
}

/* Gradient Layer - Kept as is, it's correct */
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000036 0%, #1a1a45 100%);
    opacity: 0.95;
    z-index: -1;
}

/* LOGO SECTION */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 8px;
}

.footer-logo p {
    font-size: 1rem;
    font-weight: bold;
}

/* SOCIAL ICONS */
.social-icons {
    display: flex;
    gap: 12px;
    /* Reduced margin-top slightly */
    margin: 10px 0; 
}

.social-icons a i {
    color: #fff;
    font-size: 1.1em;
    transition: color 0.3s ease, transform 0.2s;
}

/* LINK SECTIONS */
.footer-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 20px; /* Reduced gap for a tighter layout */
    /* Reduced height significantly, rely on content for auto-sizing */
    height: auto; 
    /* Remove the fixed height: 180px; to allow content to dictate height */
}

/* Each column */
.footer-links div {
    /* Main desktop layout: flex items are side-by-side */
    flex: 1 1 150px;
    min-width: 130px;
    padding: 10px 0; 
}

/* Headings */
.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 8px; /* Slightly reduced margin */
    border-bottom: none; 
    text-align: center;
}

/* Remove bullets */
.footer-links ul,
.footer-links ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 4px; /* Slightly reduced margin */
}

/* Links */
.footer-links ul li a {
    color: #ccc;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

/* Bottom section */
.footer-bottom {
    width: 100%;
    border-top: 1px solid #444;
    padding-top: 10px; /* Reduced padding-top */
    font-size: 0.85rem;
    text-align: center;
}

.footer-bottom a {
    text-decoration: none !important;
    margin: 0 6px;
    color: #ccc;
}

/* ---------------------------------------------------------------- */
/* 👇 MEDIA QUERY FOR SMALLER SCREENS (e.g., Tablets/Mobile) */
/* ---------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Adjust footer-links for better stacking on smaller screens */
    .footer-links {
        /* Allow columns to stack more easily, using a larger width to force a single column layout if needed */
        flex-direction: column; 
        gap: 15px; /* Reduced gap when stacking vertically */
    }

    /* Adjust each column to take full width and center its content */
    .footer-links div {
        /* Take full width, simplifying flex for vertical stack */
        flex: 1 1 100%; 
        padding: 5px 0; /* Reduced padding when stacked */
    }
}

