/*
==============================================
--- MASTER CSS FILE ---
==============================================
*/

/* --- Inter --- */
/* inter-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter/inter-v19-latin-regular.woff2') format('woff2');
}
/* inter-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter/inter-v19-latin-500.woff2') format('woff2');
}
/* inter-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter/inter-v19-latin-600.woff2') format('woff2');
}
/* inter-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter/inter-v19-latin-700.woff2') format('woff2');
}
/* inter-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/inter/inter-v19-latin-800.woff2') format('woff2');
}

/* --- Poppins --- */
/* poppins-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins/poppins-v23-devanagari_latin-regular.woff2') format('woff2');
}
/* poppins-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/poppins/poppins-v23-devanagari_latin-600.woff2') format('woff2');
}
/* poppins-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins/poppins-v23-devanagari_latin-700.woff2') format('woff2');
}
/* poppins-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/poppins/poppins-v23-devanagari_latin-800.woff2') format('woff2');
}

/* --- UNIFIED CSS VARIABLES --- */
:root {
    /* Primary Palette */
    --color-primary: #5A67D8; /* Indigo */
    --color-primary-dark: #434190;
    --color-primary-light: #E9D8FD;

    /* Text & Neutral Palette */
    --color-heading: #1A202C;
    --color-body-text: #4A5568;
    --color-secondary-text: #7A7F9D;

    /* Backgrounds & Borders */
    --color-background: #F7FAFC;
    --color-white: #FFFFFF;
    --color-border: #E2E8F0;
    --color-dark-bg: #23273B;

    /* Shadows & Misc */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease-in-out;
    --border-radius: 12px;
    --header-height: 80px;

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

/* --- BASE & RESET STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-body-text);
    line-height: 1.7;
    width: 100%;
    overflow-x: hidden;
}
body.nav-open {
    overflow: hidden;
}
h1, h2, h3, h4 {
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.3;
}

/*
==============================================
--- HEADER / NAVBAR ---
==============================================
*/
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;   
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-heading);
    font-weight: 600;
    font-size: 1.6rem;
    font-family: var(--font-secondary);
}
.logo-icon {
    color: var(--color-primary);
    margin-right: 12px;
    width: 32px;
    height: 32px;
}
.main-nav .nav-list {
    display: flex;
    list-style: none;
}
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    text-decoration: none;
    color: var(--color-secondary-text);
    font-weight: 500;
    font-family: var(--font-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
    gap: 8px;
}
.nav-link:hover {
    color: var(--color-heading);
}
.nav-link.active {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    width: 250px;
    background: var(--color-dark-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--color-dark-bg);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--color-white);
    font-weight: 500;
    transition: var(--transition);
    border-radius: 8px;
    gap: 12px;
}
.dropdown-item:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
.dropdown-item i {
    width: 20px;
    text-align: center;
}
.nav-toggler {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
}
.nav-toggler span {
    width: 28px;
    height: 3px;
    background: var(--color-heading);
    margin: 3px 0;
    display: block;
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 39, 59, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-list {
    list-style: none;
    text-align: center;
}
.mobile-nav-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-nav.active .mobile-nav-list li {
    opacity: 1;
    transform: translateY(0);
}
.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--color-white);
    font-weight: 500;
    font-size: 2rem;
    font-family: var(--font-secondary);
    transition: var(--transition);
}
.mobile-nav-link:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}
.nav-toggler.active span {
    background: var(--color-white);
}
.nav-toggler.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggler.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggler.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/*
 * CSS for the Mobile Navigation Close Button
 * Add this to your main stylesheet.
 */

.nav-close-btn {
    /* Positioning */
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1010; /* Make sure it's above other nav items */

    /* Appearance */
    background: transparent;
    border: none;
    padding: 10px; /* Increases the clickable area */
    color: #ffffff; /* A dark color, adjust to match your theme */
    font-size: 2.5rem; /* Makes the '×' symbol large and tappable */
    font-weight: 300;
    line-height: 1;

    /* Interaction */
    cursor: pointer;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Optional: Add a subtle hover effect */
.nav-close-btn:hover {
    transform: rotate(90deg);
    color: #377DFF; /* Use your site's primary color */
}

/*
==============================================
--- MAIN PAGE CONTENT (Mobile-First) ---
==============================================
*/
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 20px;
    width: 100%;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-secondary-text);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--color-white);
    text-align: center;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SEARCH BAR --- */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
#toolSearch {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    outline: none;
    transition: all 0.3s ease;
}
#toolSearch:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(90, 103, 216, 0.3);
}
.search-wrapper svg {
    position: absolute;
    right: 25px;
    width: 24px;
    height: 24px;
    color: #9CA3AF;
}
.search-results {
    position: absolute;
    width: 100%;
    background: var(--color-white);
    border-radius: var(--border-radius);
    margin-top: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    display: none;
    z-index: 10;
}
.search-results a {
    display: block;
    padding: 15px 25px;
    color: var(--color-body-text);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.search-results a:hover {
    background-color: #f0f2f5;
}

/* --- CATEGORIES & CARDS --- */
.categories-container, .popular-tools-grid, .features-grid {
    display: grid;
    gap: 30px;
    /* MOBILE-FIRST: Default to a single column */
    grid-template-columns: 1fr;
}

.category-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.card-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--color-white);
    margin-bottom: 20px;
    flex-shrink: 0;
}
.card-icon svg {
    width: 32px;
    height: 32px;
}
.card-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
}
.card-description {
    flex-grow: 1;
    margin-bottom: 20px;
}
.featured-tools h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}
.featured-tools ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}
.featured-tools li {
    padding: 4px 0;
}
.featured-tools li a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
}
.featured-tools li a:hover {
    text-decoration: underline;
}
.card-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    transition: background-color 0.3s ease;
    display: block;
}
.card-button:hover {
    background-color: var(--color-primary-dark);
}
.popular-tool-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 25px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.popular-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.popular-tool-card h3 {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
}
.popular-tool-card p {
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
}
.popular-tool-link {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 20px;
    text-decoration: none;
    align-self: flex-start;
}

/* --- FEATURES SECTION --- */
.feature-item {
    text-align: center;
    padding: 20px;
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    margin-bottom: 20px;
}
.feature-icon svg {
    width: 32px;
    height: 32px;
}
.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* --- FAQ SECTION --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
}
.faq-answer p {
    padding-bottom: 20px;
    margin-top: 0;
}

/* --- BLOG SECTION --- */
.bmi-blog-content {
    color: var(--color-body-text);
    line-height: 1.7;
    max-width: 1140px;
    background: var(--color-white);
    margin: 40px auto;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}
.bmi-blog-content h2 {
    font-size: 2em;
    color: var(--color-heading);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}
.bmi-blog-content h3 {
    font-size: 1.5em;
    color: var(--color-heading);
    margin-top: 30px;
    margin-bottom: 15px;
}
.bmi-blog-content p {
    margin-bottom: 15px;
}
.bmi-blog-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}
.bmi-blog-content li {
    margin-bottom: 10px;
}
.bmi-blog-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--color-secondary-text);
}

/* --- ANIMATION ON SCROLL --- */
[data-aos] {
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
[data-aos="fade-up"] {
    transform: translateY(20px);
}
[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/*
==============================================
--- RESPONSIVE & DESKTOP STYLES ---
==============================================
*/

/* --- DESKTOP VIEW (769px and wider) --- */
@media screen and (min-width: 769px) {
    /* Apply multi-column grid ONLY on larger screens */
    .categories-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .popular-tools-grid, .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* --- Navbar on Tablets (992px and below) --- */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .nav-toggler {
        display: block;
    }
}

/* --- Tablets (768px and below) --- */
@media screen and (max-width: 768px) {
    /* Typography adjustments */
    .section-header h2 { font-size: 2.2rem; }
    .card-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1.15rem; }

    /* Spacing adjustments */
    .section-container { padding: 60px 20px; }
    .hero-section { padding: 80px 20px; }
    .section-header { margin-bottom: 40px; }

    /* Search bar adjustments */
    .search-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* --- Mobile phones (480px and below) --- */
@media screen and (max-width: 480px) {
    /* Typography for mobile */
    .section-header h2 {
        font-size: 1.9rem;
        line-height: 1.2;
    }
    .section-header p { font-size: 1rem; }
    .card-title { font-size: 1.4rem; }
    .popular-tool-card h3 { font-size: 1.15rem; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    /* Spacing for mobile */
    .section-container { padding: 50px 15px; }
    .hero-section { padding: 60px 15px; }

    /* Search bar for mobile */
    #toolSearch {
        padding: 16px 50px 16px 20px;
        font-size: 1rem;
    }
    .search-wrapper svg {
        right: 20px;
        width: 20px;
        height: 20px;
    }

    /* Card adjustments for mobile */
    .category-card { padding: 25px 20px; }
    .popular-tool-card { padding: 20px; }
    .faq-question {
        font-size: 1rem;
        padding: 15px 0;
    }

    /* Icon adjustments */
    .card-icon {
        width: 50px;
        height: 50px;
    }
    .card-icon svg {
        width: 28px;
        height: 28px;
    }
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* --- Extra small mobile phones (360px and below) --- */
@media screen and (max-width: 360px) {
    .section-container { padding: 40px 10px; }
    .hero-section { padding: 50px 10px; }
    .category-card, .popular-tool-card { padding: 20px 15px; }
    .hero-title { font-size: 2rem; }
    .section-header h2 { font-size: 1.7rem; }
}








/*
==============================================
--- Converter, calculators and gernators home page CSS FILE ---
==============================================
*/

    /* Scoping variables to the main container to avoid global conflicts */
    .clp-page-container {
        --clp-color-primary: #377DFF; /* A vibrant, link-friendly blue */
        --clp-color-heading: #1A202C;
        --clp-color-body-text: #718096; /* Lighter gray for descriptions */
        --clp-color-background: #F8F9FB; /* Light gray page background */
        --clp-color-white: #FFFFFF;
        --clp-color-border: #E2E8F0;
        --clp-shadow-md: 0 8px 25px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        --clp-font-family: 'Poppins', sans-serif;
        --clp-border-radius: 16px;
        --clp-container-width: 1200px;
    }

    /* --- BASE STYLES --- */
    /* Note: These base styles are scoped within the component. 
       If you have global resets, you might not need these. */
    .clp-page-container * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Using the local variables for styling the component */
    .clp-page-container {
        font-family: var(--clp-font-family);
        background-color: var(--clp-color-background);
        color: var(--clp-color-body-text);
        line-height: 1.6;
    }

    /* --- LAYOUT & TYPOGRAPHY --- */
    .clp-page-container {
        max-width: var(--clp-container-width);
        margin: 0 auto;
        padding: 60px 20px;
    }

    .clp-page-header {
        text-align: center;
        margin-bottom: 50px;
    }
    
    .clp-page-header h1 {
        font-size: 2.75rem;
        color: var(--clp-color-heading);
        margin-bottom: 1rem;
    }
    
    .clp-page-header p {
        font-size: 1.1rem;
        color: var(--clp-color-body-text);
    }

    /* --- GRID CONTAINER --- */
    .clp-tools-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }

    /* --- TOOL CARD STYLING --- */
    .clp-tool-card {
        background-color: var(--clp-color-white);
        border-radius: var(--clp-border-radius);
        padding: 40px 30px;
        border: 1px solid var(--clp-color-border);
        box-shadow: 0 4px 6px rgba(226,232,240, 0.6);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
    }

    .clp-tool-card.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .clp-tool-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--clp-shadow-md);
    }

    .clp-card-icon {
        margin: 0 auto 20px auto;
        width: 64px;
        height: 64px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background-image: linear-gradient(145deg, #7F56D9 0%, #5A67D8 100%);
        color: var(--clp-color-white);
        box-shadow: 0 8px 16px rgba(90, 103, 216, 0.25);
    }

    .clp-card-icon svg {
        width: 32px;
        height: 32px;
    }

    .clp-card-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--clp-color-heading);
        margin: 0 0 10px 0;
    }

    .clp-card-description {
        color: var(--clp-color-body-text);
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .clp-card-separator {
        border: none;
        height: 1px;
        background-color: var(--clp-color-border);
        margin: 0 auto 25px auto;
    }

    .clp-tool-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .clp-tool-list a {
        color: var(--clp-color-primary);
        text-decoration: none;
        font-weight: 500;
        transition: text-decoration 0.2s ease;
    }

    .clp-tool-list a:hover {
        text-decoration: underline;
    }
