body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

/* Navbar */
.navbar {
box-sizing: border-box; /* Add this */
padding: 10px 15px; /* Reduced padding */
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(149,178,176, 0.7);
    color: #0f0f0f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .current-page {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.navbar .hamburger {
    display: none;
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar ul li a.active {
    color: #ffdd57;
}

.navbar ul li a:hover {
    color: #ffdd57;
}

@media (max-width: 768px) {
.navbar {
padding: 8px 12px; /* Reduce padding for smaller height */
height: 50px; /* Reduce navbar height */
}

.navbar .hamburger {
display: block;
font-size: 1.8em;
}

.navbar .current-page {
font-size: 1em; /* Slightly smaller text for mobile */
}

.navbar ul {
display: none;
position: absolute;
top: 50px; /* Adjust based on navbar height */
right: 10px;
background: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-radius: 6px;
flex-direction: column;
gap: 10px;
padding: 8px 15px; /* Reduce padding inside dropdown */
z-index: 1000;
}

.navbar ul.active {
display: flex;
}

.navbar ul li {
padding: 5px 0;
}

.navbar ul li a {
font-size: 0.95em; /* Reduce font size */
padding: 8px 10px;
display: block;
}
}


/* Improved Mobile Search */
.search-filter {
max-width: 800px;
margin: 0 auto 30px;
padding: 0 15px; /* Reduced padding for mobile */
}

#toolSearch {
width: 100%;
padding: 12px 15px; /* Reduced padding for mobile */
border: 2px solid #1E2A78;
border-radius: 25px;
font-size: 1em;
box-sizing: border-box; /* Important for mobile */
}

.category-filter {
display: flex;
gap: 8px;
justify-content: center;
flex-wrap: wrap;
margin-top: 15px;
}

.filter-btn {
padding: 6px 12px;
font-size: 0.9em;
white-space: nowrap; /* Prevent button text wrapping */
}

/* Mobile Optimization */
@media (max-width: 480px) {
.search-filter {
padding: 0 10px;
margin-bottom: 20px;
}

#toolSearch {
padding: 10px 12px;
font-size: 0.9em;
}

.category-filter {
gap: 5px;
justify-content: flex-start;
overflow-x: auto; /* Horizontal scroll for many filters */
padding-bottom: 5px;
-webkit-overflow-scrolling: touch;
}

.filter-btn {
flex-shrink: 0; /* Prevent button shrinking */
padding: 5px 10px;
font-size: 0.85em;
}
}

/* Scrollbar styling for filters */
@media (hover: hover) {
.category-filter::-webkit-scrollbar {
height: 4px;
}

.category-filter::-webkit-scrollbar-thumb {
background: #1E2A78;
border-radius: 4px;
}
}

.tools-section {
    padding: 80px 20px 40px;
    text-align: center;
}

.tools-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1E2A78;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.tool-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tool-card i {
    font-size: 3em;
    color: #1E2A78;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.tool-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 1em;
    color: #666;
    min-height: 60px;
}

.tool-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 5px;
    background: #1E2A78;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.tool-card a:hover {
    background: #ffdd57;
    color: #333;
}


.search-bar {
    margin-bottom: 20px;
}

#toolSearch {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #1E2A78;
    border-radius: 25px;
    font-size: 1em;
}

.category-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(30, 42, 120, 0.1);
    border: 1px solid #1E2A78;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #1E2A78;
    color: white;
}

.coming-soon {
    position: absolute;
    top: 10px;
    right: -30px;
    background: #4CAF50;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
    /* Footer Styles - Updated to Match Services Page */
.footer {
background: rgba(149, 178, 176, 0.7);
color: #0f0f0f;
text-align: center;
padding: 20px;
margin-top: 50px;
}

.footer p {
margin: 0;
}

@media (max-width: 768px) {
.footer {
    font-size: 0.9em;
}
}

.header {
    text-align: center;
    padding: 80px 20px;
    background: url('Photos/tool-header.jpg') no-repeat center center/cover;
    color: white;
}

.header h1 {
    font-size: 3em;
    margin: 0;
}

.header p {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5em;
    }

    .header p {
        font-size: 1em;
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
  }
  
  .close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover {
    color: #333;
  }
  
  /* Calculator Styles */
  .input-group {
    margin: 15px 0;
  }
  
  .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  button {
    background: #1E2A78;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
  }
  
  button:hover {
    background: #ffdd57;
    color: #333;
  }
  
  .results {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
  }
  #reset-btn {
    background: #d9534f; /* Red color */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 5px;
}

#reset-btn:hover {
    background: #c9302c;
}
  
  /* Mobile Optimization */
  @media (max-width: 768px) {
    .modal-content {
        box-sizing: border-box; /* Add this */
        width: 90%;
    max-height: 80vh; /* Reduce height to prevent full-screen takeover */
    overflow-y: auto;
    margin: 5% auto; /* Ensure better positioning */
    padding: 15px;
}
    .input-group input {
        box-sizing: border-box; /* Add this */
        padding: 12px;
        font-size: 16px;
    }

    button {
        box-sizing: border-box; /* Add this */
        padding: 12px;
        font-size: 1em;
    }

    .burger-menu {
        display: block;
    }

    .navbar ul {
        display: none;
    }

    .navbar.active ul {
        display: flex !important;
    }
}


 /* Additional Frequency Converter Styles */
 .converter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .or-divider {
    text-align: center;
    margin: 10px 0;
    position: relative;
  }
  
  .or-divider::before,
  .or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
    margin: auto;
  }
  
  .or-divider::before {
    margin-right: 10px;
  }
  
  .or-divider::after {
    margin-left: 10px;
  }
  
  .formula {
    font-size: 1.4em;
    text-align: center;
    margin: 15px 0;
    color: #1E2A78;
    font-weight: bold;
  }
  
  .reset-btn {
    background: #d9534f;
    margin-left: 10px;
  }
  
  @media (max-width: 480px) {
    .converter-container {
      gap: 10px;
    }
    
    .or-divider {
      margin: 5px 0;
    }
  }

  /* Additional Coverage Estimator Styles */
.input-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.input-group input[type="number"] {
    width: 95%;
}

@media (max-width: 480px) {
    .input-group select {
        font-size: 0.9em;
    }
}


/* Additional Band Calculator Styles */
.band-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.band-table th, .band-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.band-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* CSS to gray out and disable clicks */
.disabled-link {
    pointer-events: none;  /* Prevents clicks */
    cursor: default;       /* Changes the mouse cursor */
    color: gray;           /* Gray text */
    opacity: 0.5;          /* Slightly transparent */
    text-decoration: none; /* Remove underlines if desired */
  }
  