body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #000000;
  }
  
  /* Header */
  .site-header {
    width: 100%;
    background-color: #ffffff; /* White header */
    padding: 10px 20px;
  }
  
  .header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .header-logo {
    max-height: 60px;
  }
  
  /* Menu toggle */
  .menu-toggle {
    display: none;
  font-size: 28px;
  color: #0b367e;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 20px; /* Optional: spacing from logo */
  }
  
  /* Navbar */
  .navbar {
    background-color: #0b367e; /* Dark Blue navbar */
    width: 100%;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    padding: 10px 20px;
  }
  
  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 20px;
    padding: 10px 0;
    margin: 0;
  }
  
  .nav-menu li {
    margin: 0;
  }
  
  .nav-menu a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .nav-menu a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #fab715; /* Yellow underline */
    transition: width 0.3s ease-in-out;
  }
  
  .nav-menu a:hover {
    color: #fab715;
    transform: translateY(-1px);
  }
  
  .nav-menu a:hover::after {
    width: 100%;
  }
  
  .navbar-divider {
    height: 4px;
    background-color: #fab715;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: slideIn 1.9s ease forwards;
  }
  

@keyframes slideIn {
  from { width: 0; }
  to { width: 100%; }
}

  
  /* Search */
  .nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .search-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    filter: brightness(0) invert(1);
  }
  
  .nav-search-form {
    display: none;
    position: absolute;
    top: -8px;
    left: 34px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease forwards;
    z-index: 10;
    align-items: center;
    flex-direction: row;
  }
  
  .nav-search-form input {
    padding: 5px 10px;
    border: none;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
    font-size: 13px;
  }
  
  .nav-search-form button {
    margin-left: 8px;
    padding: 5px 12px;
    background-color: #ffffff;
    color: #0b367e;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
  }
  
  .nav-search-form input::placeholder {
    color: #ffffff;
    opacity: 1;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    .nav-container {
      flex-direction: column;
      align-items: center;
    }
  
    .nav-menu {
      display: none;
      flex-direction: column;
      width: 100%;
      margin-top: 10px;
      background-color: #0b367e;
    }
  
    .nav-menu.show {
      display: flex;
    }
  
    .nav-menu li {
      margin: 10px 0;
      text-align: center;
    }
  }
  
/* footer css */

.site-footer {
    background-color: #0b367e;
    color: #ffffff;
    padding: 40px 20px 20px;
    font-size: 14px;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
  }
  
  .footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fab715;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-column ul li {
    margin-bottom: 10px;
  }
  
  .footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-column ul li a:hover {
    color: #fab715;
  }
  
  .footer-logo {
    max-width: 200px; /* increased from 150/160px */
    margin-bottom: 8px; /* reduced from 15px */
  }
  
  .footer-tagline {
    color: #ffffff;
    font-style: italic;
    font-size: 13px;
    margin-top: 0; /* Ensure no extra gap from browser defaults */
  }
  
  .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 ease;
  }
  
  .social-links a:hover img {
    transform: scale(1.15);
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ffffff33;
    margin-top: 30px;
    font-size: 13px;
    color: #fab715;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
    /* HERO SECTION */
    .hero-section {
        background-color: #0b367e;
        color: #ffffff;
        padding: 60px 20px;
        text-align: center;
      }
      
      .hero-content {
        max-width: 800px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      
      .hero-title {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 10px;
      }
      
      .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
      }
  /* SEARCH BAR */
  .hero-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .hero-search input {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    outline: none;
    min-width: 250px;
    width: 300px;
  }
  
  .hero-search button {
    padding: 10px 20px;
    background-color: #fab715;
    border: none;
    color: #000000;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .hero-search button:hover {
    background-color: #ee3528;
    color: #ffffff;
  }
  
  
  /* POPULAR TOOLS */
  .popular-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  
  .popular-tools button {
    padding: 8px 16px;
    background-color: #ffffff;
    border: 2px solid #fab715;
    color: #0b367e;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .popular-tools button:hover {
    background-color: #fab715;
    color: #ffffff;
  }
  
  
  /* TOOLS GRID */
  .tools-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
  }
  
  .tools-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0b367e;
    font-size: 1.8rem;
  }
  
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .tool-card {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  }
  
  .tool-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }
  
  .tool-card h3 {
    margin: 0;
    font-size: 16px;
    color: #111;
  }
  
  /* FEATURED TOOLS */
  .featured-section {
    padding: 40px 20px;
    background-color: #f8f8f8;
  }
  
  .featured-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ee3528;
    font-size: 1.8rem;
  }
  
  .featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .featured-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #fab715;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .featured-card:hover {
    background-color: #fab715;
    color: #000000;
    transform: scale(1.03);
  }
  
  .featured-card h3 {
    margin-bottom: 10px;
  }
  
  @media (max-width: 600px) {
    .hero h1 {
      font-size: 2rem;
    }
  }
  
  /* Simple Calculator CSS */
  
  .calculator {
    display: inline-block;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
  }

  #calc-display {
    width: 95%;
    padding: 14px;
    font-size: 2.2rem;
    text-align: right;
    border: 2px solid #fab715;
    border-radius: 6px;
    margin-bottom: 18px;
    background-color: #fffcea;
    color: #0b367e;
  }

  .calc-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }

  .calc-buttons.four-cols {
    grid-template-columns: repeat(4, 1fr);
  }

  .calc-buttons button {
    padding: 14px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    background-color: #0b367e;
    color: #ffffff;
    transition: background 0.3s;
  }

  .calc-buttons button:hover {
    background-color: #ee3528;
  }

  .calc-buttons button.top-row {
    background-color: #d3d3d3;
    color: #000000;
    font-weight: bold;
  }

  .calc-buttons button.clear-btn {
    background-color: #fab715;
    color: #000000;
    font-weight: bold;
  }

  .calc-buttons button.equal-btn {
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
  }

  .calc-buttons button.operator {
    background-color: #ee3528;
    color: #ffffff;
    font-weight: bold;
  }

  .calculator-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

 

  @media (max-width: 768px) {
    .calculator-section {
      flex-direction: column;
      align-items: center;
    }

    .history {
      width: 100%;
      max-width: 500px;
    }
  }

/* Calculator History CSS */

.history {
    flex: 1;
    max-width: 300px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #fab715;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .clear-history-btn {
    background: none;
    border: none;
    color: #ee3528;
    cursor: pointer;
    font-weight: bold;
  }

  .history ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .history li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
  }

  .history li span {
    flex: 1;
  }

  .history li button {
    margin-left: 6px;
    background: none;
    border: none;
    cursor: pointer;
  }

 /* Simple calculator CSS */
  .calculator-info {
    background-color: #ffffff;
    color: #000000;
    padding: 2rem;
    font-family: Arial, sans-serif;
    line-height: 1.6;
  }

  .calculator-info h2, .calculator-info h3, .calculator-info h4 {
    color: #0b367e;
    margin-top: 2rem;
  }

  .calculator-info h3 {
    border-left: 6px solid #ee3528;
    padding-left: 10px;
  }

  .calculator-info h4 {
    margin-top: 1.2rem;
    font-weight: bold;
    color: #ee3528;
  }

  .calculator-info table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
  }

  .calculator-info th, .calculator-info td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
  }

  .calculator-info thead {
    background-color: #0b367e;
    color: #ffffff;
  }

  .calculator-info ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
  }

  .calculator-info ul li {
    margin-bottom: 0.4rem;
  }

  .calculator-info code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #000;
  }

  .highlight-yellow {
    color: #fab715;
  }

  .highlight-red {
    color: #ee3528;
  }

  .highlight-blue {
    color: #0b367e;
  }

  .cta-link {
    color: #0b367e;
    text-decoration: underline;
    font-weight: bold;
  }


  /* Scientific Calci */
  .mode-btn {
    background-color: #0b367e;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 4px;
  }
  .top-controls button {
    background-color: #000;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 6px;
  }
  .func-btn {
    background-color: #fab715;
    color: black;
    border: none;
    padding: 8px;
    margin: 2px;
    border-radius: 6px;
  }
  .const-btn {
    background-color: #ffffff;
    color: #0b367e;
    border: 1px solid #0b367e;
    padding: 8px;
    margin: 2px;
    border-radius: 6px;
  }
  .num-btn {
    background-color: #ffffff;
    color: #000;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
  }
  .operator-btn {
    background-color: #ee3528 !important;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
  }
  .basic-operator-btn {
    background-color: #ddd;
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 6px;
  }
  .equal-btn {
    background-color: #000000;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
  }

  /* about us css */
  .about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 200px;
    padding-right: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #0b367e;
  }
  
  
  
  .about-header h1 {
    font-size: 3rem;
    color: #ee3528;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .about-section {
    margin-bottom: 2rem;
  }
  
  .about-section h2 {
    color: #fab715;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .about-section p {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .about-section ul {
    padding-left: 1.2rem;
    list-style-type: disc;
  }
  
  .about-section li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
  }
  
  @media (max-width: 600px) {
    .about-container {
      padding: 1.5rem 1rem;
    }
  }
  
  /* Table Maker css */
 /* ====== TABLE MAKER STYLES ====== */

.table-maker-container {
  padding: 20px;
  max-width: 900px;
  margin: auto;
  font-family: 'Poppins', sans-serif;
  color: #0b367e;
}

.table-title {
  text-align: center;
  font-size: 2rem;
  color: #ee3528;
  margin-bottom: 20px;
}

.table-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 20px;
  max-width: 600px;
  margin-inline: auto;
}

.input-label {
  flex-basis: 100%;
  text-align: center;
  font-weight: 600;
  margin-bottom: 10px;
}

.input-box,
.dropdown,
.generate-btn {
  flex: 1 1 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.generate-btn {
  background-color: #0b367e;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.generate-btn:hover {
  background-color: #092a63;
}

.table-output {
  overflow-x: auto;
  padding: 10px;
  margin-top: 20px;
}

.output-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.output-table th,
.output-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.output-table th {
  background-color: #fab715;
  color: #000;
}

.output-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.action-buttons button {
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.print-btn {
  background-color: #fab715;
  color: #000;
}

.pdf-btn {
  background-color: #ee3528;
  color: white;
}

/* ====== MEDIA QUERIES ====== */
@media (max-width: 600px) {
  .table-title {
    font-size: 1.5rem;
  }

  .table-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .input-box,
  .dropdown,
  .generate-btn {
    width: 100%;
  }

  .action-buttons {
    flex-direction: column;
    gap: 12px;
  }
}


  
  