/* =================================================================
   GLOBAL STYLES & VARIABLES
   ================================================================= */
:root {
    --primary-color: #2A5C82;
    --secondary-color: #5c5ead;
    --accent-color: #ff6b35;
    --card-bg: #ffffff;
    --text-dark: #2d3748;
    --text-light: #6c757d;
    --light-bg: #f8f9fa;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    --border-radius: 14px;
    --transition: all 0.3s ease;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    padding-top: 80px;
}

/* =================================================================
   LAYOUT & SHARED COMPONENTS (NAVBAR, FOOTER)
   ================================================================= */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85); /* Slightly transparent white for a modern look */
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: #ffffff; /* Full white on hover or when the page is active */
    }

.navbar-custom {
    background: linear-gradient(135deg, #1a3a63 0%, #2c4e80 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
}

    .navbar-brand .fa-tools {
        color: var(--accent-color);
    }

.navbar-nav .nav-link {
    font-weight: 500;
}

    .navbar-nav .nav-link i {
        margin-right: 6px;
    }

main {
    margin-bottom: 4rem; /* ADDED: Creates space above the footer */
}

.footer {
    background: #1f2d3d;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
}

    .footer p {
        margin: 0;
    }

/* =================================================================
   HOMEPAGE SPECIFIC STYLES (INDEX.CSHTML)
   ================================================================= */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    color: white;
    padding: 2rem 0; /* EDITED: Reduced height */
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background: var(--accent-color);
    color: white !important;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

    .hero-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(255, 107, 53, 0.4);
    }

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.tool-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 300px; /* ADDED: Ensures all cards have a consistent height */
}

    .tool-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    }

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tool-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.footer[b-ahb235n8fe] {
    position: static !important; /* Resets the position from absolute */
    line-height: normal !important; /* Resets the line-height */
    white-space: normal !important; /* Resets the white-space */
}


.tool-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

    .tool-link:hover {
        color: var(--accent-color);
    }

.sidebar {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: static;
    top: 100px;
}

    .sidebar h3 {
        font-size: 1.2rem;
        font-weight: 700;
        border-bottom: 2px solid #eee;
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
    }

    .sidebar li a {
        display: block;
        padding: 0.6rem 0.5rem;
        color: var(--text-light);
        text-decoration: none;
        border-radius: 6px;
        transition: var(--transition);
        font-weight: 500;
    }

        .sidebar li a:hover {
            background-color: #f1f3f5;
            color: var(--primary-color);
        }

        .sidebar li a i {
            width: 25px;
            color: var(--primary-color);
            margin-right: 8px;
        }


/* =================================================================
   FOOTER STYLES
   ================================================================= */

/* --- Main Footer Area --- */
.footer {
    background: #1f2d3d; /* A dark, professional blue-gray */
    color: rgba(255, 255, 255, 0.7); /* Light gray text for readability */
    padding: 2rem 0 2rem;
    font-size: 0.95rem;
    position: relative;
}

    /* --- Section Titles --- */
    .footer h5 {
        color: #ffffff; /* White titles to stand out */
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
    }

        .footer h5 i {
            color: var(--accent-color); /* Use your theme's accent color for icons */
            font-size: 1rem;
            margin-right: 10px;
        }

/* --- Links & Lists --- */
.footer-links {
    list-style: none;
    padding-left: 0;
}

    .footer-links li {
        margin-bottom: 0.8rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: var(--accent-color); /* Highlight on hover */
            padding-left: 5px;
        }

/* --- Social Media Icons --- */
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: var(--transition);
}

    .social-links a:hover {
        background-color: var(--accent-color);
        color: #fff;
        transform: translateY(-3px); /* Slight lift effect on hover */
    }

/* --- Call to Action Box --- */
.footer-cta-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    height: 100%;
}

.btn-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

    .btn-cta:hover {
        background-color: #e65c2e; /* Slightly darker accent color on hover */
        transform: scale(1.05);
    }

/* --- Bottom Bar --- */
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
