/* 
* SolutionsEngineering.Tools - Custom Styles
* Colors using a fun shade of green with complementary colors: 
* - Primary: #2ecc71 (fun green)
* - Secondary: #16a085 (darker green)
* - Accent: #e74c3c (complementary red)
* - Highlight: #3498db (bright blue)
* - Light: #f8f9fa
* - Dark: #212529
*/

/* Base Styles */
body {
    font-family: 'Gantari', sans-serif;
    color: #212529;
    line-height: 1.6;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: #2ecc71;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #16a085;
    text-decoration: underline;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-dark {
    background: linear-gradient(135deg, #2ecc71, #16a085) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2ecc71, #16a085);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 140px;
    object-fit: contain;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Category Pills */
.category-pill {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #2ecc71;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-pill:hover{
    background-color: #16a085;
    color: white !important;

}

/* Search Box */
.search-box {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 3rem;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: #e7f9ef;
    color: #16a085;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(46, 204, 113, 0.25);
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.newsletter h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.newsletter .form-control {
    border-radius: 30px;
    padding-left: 20px;
    height: 50px;
}

.newsletter .btn-primary {
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

/* Tool Detail Page */
.tool-header {
    padding: 1.5rem 0 4rem;
    border-bottom: 1px solid #eee;
}

.tool-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tool-description {
    line-height: 1.6;
    color: #555;
    text-align: left;
}

.tool-categories {
    margin: 1rem 0;
}

/* Contact Form */
.contact-form {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.badge-new-superscript {
    vertical-align: super;
    font-size: 0.6em; /* Adjust as needed */
    padding: 0.2em 0.4em; /* Adjust padding */
    position: relative; /* Allows fine-tuning with 'top' if needed */
    top: -0.2em; /* Adjust vertical position if needed */
}

.contact-form .form-control {
    margin-bottom: 1rem;
}

.contact-form .btn {
    background-color: #2ecc71;
    border: none;
    padding: 0.5rem 2rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #16a085, #2ecc71) !important;
}

footer a {
    color: white;
    opacity: 0.8;
}

footer a:hover {
    color: white;
    opacity: 1;
}

/* Bootstrap Overrides */
.bg-primary {
    background: linear-gradient(135deg, #2ecc71, #16a085) !important;
}

.bg-light {
    background-color: #f0f8f3 !important; /* Light green tint */
}

.btn-primary {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #16a085;
    border-color: #16a085;
}

.btn-outline-primary {
    color: #2ecc71;
    border-color: #2ecc71;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

.text-primary{
    color:#2abc68 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    /* Improved mobile card layout */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Better spacing for category pills on mobile */
    .category-pill {
        margin-bottom: 0.75rem;
        display: inline-block;
    }
    
    /* Tool profile page mobile improvements */
    .tool-logo {
        max-width: 150px;
        margin: 0 auto 1.5rem;
    }
    
    .tool-header {
        text-align: center;
        padding: 2rem 0;
    }
    
    .tool-header .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Improve form elements on mobile */
    .form-control, .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Better spacing for footer on mobile */
    footer {
        text-align: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Additional mobile improvements */
@media (max-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .search-box {
        padding: 1.5rem;
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
