body {
    font-family: 'Poppins', sans-serif;
    background-color: whitesmoke;
    background-image: url("https://www.transparenttextures.com/patterns/connected.png");
    /* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
}

.navbar {
    background-color: var(--site-color);
    box-shadow: 0px 7px 10px #93edffaa;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand,
.navbar-nav .nav-link {
    position: relative;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
    /* padding: 8px 10px !important; */
    margin-left: 6px !important;
}

.logo-img{
    width:200px;
    height:50px;
}

/* Pseudo-element for animated underline */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 10px 0;
}

/* Hover effect */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Optional: Change text color on hover */
.navbar-nav .nav-link:hover {
    color: white;
}


/* Dropdown Styling */
.dropdown-menu {
    background-color: #ffffff;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    color: #333;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f4f4f4;
    color: var(--site-color);
}


.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.slider-placeholder {
    background: #ffffff33;
    padding: 40px;
    border-radius: 10px;
    margin-top: 30px;
}

.tool-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 60px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--site-color);
}

.tool-box a {
    display: block;
}

.tool-list .tool-item {
    background: #f9fbff;
    border: 2px solid var(--site-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    /* justify-content: space-evenly; */
    gap: 10px;
    height: 100%;
    font-weight: 500;
    color: #34495e;
    transition: all 0.3s ease;
}

.tool-list .tool-item:hover {
    background: #eaf4ffaa;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.tool-list a {
    text-decoration: none;
    color: var(--site-color);
    height: 100%;
}


.tool-box {
    position: relative;
}

.tag-image {
    position: absolute;
    top: -15px;
    right: -4px;
}

.tag-image img {
    width: 72px;
    height: 37px;
}



.hero-section {
    position: relative;
}

.left-img-icons-1,
.right-img-icons-1,
.left-img-icons-2,
.right-img-icons-2,
.left-img-icons-3,
.right-img-icons-3 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.left-img-icons-1 img,
.right-img-icons-1 img,
.left-img-icons-2 img,
.right-img-icons-2 img,
.left-img-icons-3 img,
.right-img-icons-3 img {
    animation: updownmove 2s infinite alternate;
}

@keyframes updownmove {
    0% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(40px);
    }
}

.left-img-icons-1 {
    left: 47px;
    top: 181px;

}

.left-img-icons-2 {
    left: 150px;
    top: 180px;
}

.left-img-icons-3 {
    left: 59px;
    top: 271px;
}

.right-img-icons-1 {
    right: 147px;
    top: 172px;
}

.right-img-icons-2 {
    right: 80px;
    top: 180px;
}

.right-img-icons-3 {
    right: 74px;
    top: 260px;
}

fieldset {
    border: 2px solid #3498db;
    border-radius: 5px;
    margin: 40px 0px;
    padding: 20px;
    background: #f9fbff;
}

legend {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    /* text-align: center; */
}

/* Base style for all legends */
.category-legend {
    font-size: calc(1.275rem + 0.3vw);
    font-weight: 600;
    margin-bottom: 0px;
    line-height: 1.4;
    border: 2px solid #3498db;
    border-radius: 3px;
    padding: 4px 10px;
    float: none;
    width: max-content;
    color: #fff;
}

/* First fieldset's legend */
fieldset:nth-of-type(1) .category-legend {
    background-color: #8e006bff;
}

/* Second fieldset's legend */
fieldset:nth-of-type(2) .category-legend {
    background-color: #0a3d66;
}

/* Third fieldset's legend */
fieldset:nth-of-type(3) .category-legend {
    background-color: #f39c12;
}

/* Fourth fieldset's legend */
fieldset:nth-of-type(4) .category-legend {
    background-color: #d35400;
}

fieldset:nth-of-type(5) .category-legend {
    background-color: #2c3e50;
}

fieldset:nth-of-type(6) .category-legend {
    background-color: #27ae60;
}

fieldset:nth-of-type(7) .category-legend {
    background-color: #8e44ad;
}

.category-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 50px;
    background-color: #f0f4ff;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #d1e0ff;
}

.category-description p {
    margin: 0;
}