.tools-section {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px 16px 0 16px;
}

.tool-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0066cc;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 10px 18px;
  height: 90%;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;

}

.tool-btn:hover {
  background: #004080;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.tool-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tool-name {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}

.tool-arrow {
  font-size: 22px;
  margin-left: 16px;
  color: #fff;
  transition: color 0.2s;
}

.tool-btn:hover .tool-arrow {
  color: #000000;
}

@media (max-width: 850px) {
  .tools-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tools-section {
    grid-template-columns: 1fr;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}


body,
html {
  height: 100%;
}

.top-banner,
.bottom-banner {
  height: 200vh;;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-space {
  background: #ddd;
  color: #333;
  border: 1px dashed #888;
  width: 95%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0066cc;
  color: #fff;
  padding: 10px 20px;
}

.nav-links {
  display: flex;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #010056;
}

.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

.main-container {
  display: flex;
  min-height: 66vh;
}

.left-banner {
  width: 1000px;;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards-container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  padding: 20px;
}

.card {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.card-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

.card h2 {
  font-size: 2rem;
}

.tool-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.tool-name {
  font-size: 14px;
  text-align: start;
  flex: 1;
  transform: translateX(-20px);
  margin-left: 10%;
}

.tool-link {
  padding: 6px 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s;
  margin-left: auto;
  border: 3px solid #004080;
}


.tool-link:hover {
  background: #004080;
}

@media (max-width: 1000px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .left-banner {
    display: none;
  }
}

@media (max-width: 850px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #0066cc;
    position: absolute;
    top: 157px;
    width: 30%;
    padding: 10px 0 0 5px;
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
  }
}

@media (min-width:850px) {
  .bottom-banner {
    display: none;
  }
}

.layout-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-row {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.scroll-panel {
  background: linear-gradient(120deg, #e3f2fd 0%, #f5f5f5 100%);
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 30% 0;
}