/* Reset & global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(to bottom, #0077a1, #004c6d);
    color: white;
    padding: 15px 20px;
}



.header-content span {
    color: #004c6d;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-content img {
    height: 50px;
    width: auto;
}

.header-content span {
    font-size: 1.6em;
    font-weight: 700;
    color: white;
}

.logo-badge {
    background-color: white;
    padding: 8px 12px;
    border-radius: 25px;  /* pill shape */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);  /* optional: soft shadow for lift */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-badge img {
    height: 55px;
    width: auto;
}

.circle-icon {
    border-radius: 50%;
}

/* Container & grid */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* 3 columns by default */
    gap: 20px;
}

/* Desktop: 4 columns */
@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phone: 1 column */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Icons */
.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    background-color: #00b4b7;      /* Teal icon background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;                   /* White icon text for contrast */
}

.tool-icon {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    height: auto;
}


.tool-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  width: 110px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  background-color: transparent;
  text-decoration: none;
}


.tool-icon-wrapper img {
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border: 50%;
}



/* Text */
.card h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #004c6d;                 /* Deep blue heading */
}

.card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
}

/* Button */
.card a:last-of-type {
    display: inline-block;
    text-decoration: none;
    background-color: #00b4b7;      /* Teal button */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.card a:hover {
    background-color: #d0d9da;      /* Darker teal on hover */
}

/* Keep icons clickable without altering their background */
.tool-icon-wrapper a {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    text-decoration: none;
}

/* Optional subtle hover feedback */
.tool-icon-wrapper a:hover {
    cursor: pointer;
    transform: scale(1.05); /* subtle zoom effect */
    transition: transform 0.2s ease;
}

.tool-icon-wrapper:hover {
  cursor: pointer;
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Ensure image stays clean, no background changes */
.tool-icon-wrapper img.tool-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
