/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header styles */
header {
    background-color: #132043;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
}

.navbar {
    display: flex;
    align-items: center;
}

/* Navigation menu styles */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

/* Hamburger menu (only visible on small screens) */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    margin-left: auto; /* Push the hamburger to the right */
}

/* overtime calculator style */

.calc-container {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f9;
  }


  .calculator-wrapper {
    width: 60%;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
  }
  
  h1 {
    text-align: center;
    font-size: 30px;
    color: #333;
    font-weight: bolder;
    margin-bottom: 30px;
  }

/* General styles for both sections */
.how-to-use-hours-calc,
.how-to-calculate-hours {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa; /* Light gray background */
    padding-top: 10px; /* Reduced top padding */
    padding-bottom: 10px; /* Reduced bottom padding */
}

.how-to-use-hours-calc .calculator-wrapper,
.how-to-calculate-hours .calculator-wrapper {
    width: 60%;
    padding: 30px;
    margin-bottom: 10px; /* Reduced bottom margin */
    margin-top: 10px; /* Reduced top margin */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-to-calculate-hours {
  margin-bottom: 80px;
}

.how-to-use-hours-calc h1,
.how-to-calculate-hours h1 {
    text-align: center;
    font-size: 35px;
    color: #2c3e50; /* Dark blue-gray for headings */
    font-weight: bolder;
    margin-bottom: 30px; /* Reduced bottom margin */
    position: relative;
}

.how-to-use-hours-calc h1::after,
.how-to-calculate-hours h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9); /* Blue gradient for underline */
    margin: 10px auto 0;
    border-radius: 2px;
}

.instruction-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0; /* Light gray border */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.instruction-step {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Reduced bottom margin */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-description h3 {
    font-size: 22px;
    color: #34495e; /* Dark blue-gray for step headings */
    margin-bottom: 8px;
    font-weight: bold;
    margin-top: 5px;
}

p {
    font-size: 16px;
    color: #555; /* Dark gray for text */
    margin-top: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.step-description a {
    text-decoration: underline;
    color: #3498db;;
    font-weight: bolder;
}

.step-description a:hover {
    text-decoration: none;
    font-style: italic;
}
.step-description strong {
    color: #3498db; /* Blue for highlighted text */
    font-weight: bold;
}

/* Table Container */
.table-container {
    margin: 25px 0;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Table Styles */
.overtime-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
}

.overtime-table thead {
    background-color: #2c3e50;
    color: white;
}

.overtime-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.overtime-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.overtime-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.overtime-table tbody tr:hover {
    background-color: #f1f8fe;
}

/* Special Cell Styles */
.currency-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2c3e50;
}

.highlight {
    background-color: #e3f2fd;
    color: #0d47a1;
    font-weight: 700;
}


/* Mobile styles */
@media (max-width: 768px) {
  .logo {
    font-size: 1.2rem;
  }

  .overtime-table th,
  .overtime-table td {
      padding: 10px 8px;
      font-size: 0.85rem;
  }
  
  .overtime-table {
      min-width: 600px;
  }  
    .navbar {
        width: 100%;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 67px;  /* Added top margin to avoid overlapping with logo */
        left: 0;
        background-color: #333;
        text-align: left;  /* Align to the left */
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        padding-left: 20px;  /* Add left padding for alignment */
    }

    .hamburger {
        display: block;
    }

    .calculator-wrapper {
        width: 98%;
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 80px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        background-color: white;
        border-radius: 8px;
      }
      
      h1 {
        font-size: 28px;
      }

           
      .how-to-use-hours-calc .calculator-wrapper,
      .how-to-calculate-hours .calculator-wrapper {
          width: 90%;
          padding: 20px;
      }
  
      .how-to-use-hours-calc h1,
      .how-to-calculate-hours h1 {
          font-size: 28px;
      }
  
      .instruction-step {
          flex-direction: column;
          align-items: flex-start;
          padding: 20px;
      }
  
      .step-description h3 {
          font-size: 20px;
      }
  
      .step-description p {
          font-size: 15px;
      }
}

/* Footer Menu Styles */
.footer-menu {
    background-color: #1F4172;
    color: white;
    padding: 10px 20px;
    text-align: center;
    width: 100%;
    margin: 0;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-menu ul li {
    margin: 0;
}

.footer-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Footer styles */
footer {
    background-color: #132043;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    margin: 0;
}

footer p {
    color: white;
}