html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/*============================================================*/

/* Custom Screw-Nut Icon */
.screw-nut {
    width: 36px;
    height: 36px;
    background-color: #007bff;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screw-nut::before,
.screw-nut::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 5px;
    background-color: #fff;
    border-radius: 2px;
}

.screw-nut::before {
    transform: rotate(45deg);
}

.screw-nut::after {
    transform: rotate(-45deg);
}


/* -===================- */


.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    }

.navbar-brand div {
    font-size: 18px;
}

footer a:hover {
    text-decoration: underline !important;
}

.object-fit-cover {
    object-fit: cover;
}


.featured-category-item {
    position: relative;
    display: block;
    overflow: hidden;
    text-align: center;
    color: white; /*default :text color ;*/
}
/*
.featured-category-item img {
    width: 100%;
    display: block;
    transition: filter 0.3s ease;
}*/

/* overlay sits above image */
.shadow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    transition: background-color 0.3s ease;
    z-index: 1;
    border-radius: 8px;
}

/* text sits above overlay */
.featured-category-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 2;
    text-align: center;
    white-space: nowrap;
    padding: 0 10px;
    transition: transform 0.3s ease;
}

/* Hover effect */
.featured-category-item:hover .shadow-overlay {
    background-color: rgba(25, 131, 211, 0.6); /* #1983d3 overlay */
}

.featured-category-item:hover img {
    transform: scale(1.05);
}

.featured-category-item:hover .featured-category-title {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Responsive font size */
@media (max-width: 576px) {
    .featured-category-title {
        font-size: 1.2rem;
    }
}



.featured-category-item img {
    width: auto;                 /* Don’t force full width */
    max-width: 100%;             /* Scale down if needed */
    height: auto;                /* Keep natural ratio */
    display: inline-block;       /* Keep image centered properly */
    object-fit: contain;         /* Prevent distortion */
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.featured-category-item {
    text-align: center;
}

.featured-category-item img {
    margin: 0 auto;
}
/*Index Navigate Page*/


.index-container {
    max-width: 700px;
    margin: 80px auto;
    background: #fff;
    /*padding: 40px;*/
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.index-container h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 30px;
}

.index-list {
    list-style: none;
    padding: 0;
}

.index-list li {
    background: #1983d3;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.index-list li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.index-list li:hover {
    background: #1469ac;
    transform: translateY(-2px);
}


/*Numbering on li tag */

.auto-number {
    counter-reset: section;
}

    .auto-number li {
        counter-increment: section;
        position: relative;
        margin-left: 35px;
    }

        .auto-number li::before {
            content: counter(section) ". ";
            position: absolute;
            left: -30px;
            top:10px;
            color: #1983d3;
            font-weight: bold;
        }


.modal-content {
    border-radius: 1rem;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
}
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.mobile-search-btn {
    border: none;
    background: transparent;
    color: #fff; /* white icon */
    outline: none; /* remove focus outline */
}

    .mobile-search-btn:focus,
    .mobile-search-btn:active,
    .mobile-search-btn:hover {
        background: transparent !important;
        box-shadow: none !important;
    }
/* --- Added styles for step images and animated placeholder --- */

.step-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 380px;
    max-width: 40%;
}

@media (max-width: 992px) {
    .step-media {
        width: 140px;
        max-width: 35%;
    }
}

.step-img {
    width: 100%;
    max-width: 360px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.step-img:hover {
    transform: scale(1.02);
}

/* Placeholder with shimmer */
.image-placeholder {
    width: 100%;
    max-width: 360px;
    height: 200px;
    background: #edf2f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.shimmer-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #eef2f7 0%, #e0e7ef 50%, #eef2f7 100%);
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
    opacity: 0.9;
}

.placeholder-text {
    position: relative;
    z-index: 2;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/*.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.2s;
    z-index: 9999;
    mix-blend-mode: difference;
}*/


#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}
/*
#hero-section {
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    pointer-events: none;
    animation: fadeMove 1s ease-out forwards;
    box-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff;
}

@keyframes fadeMove {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-30px) scale(0);
    }
}*/