﻿/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
}

.container1 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 220px;
    height: 275px; /* Reduced overall card height */
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: translateY(-10px);
    }

.image {
    width: 100%;
    height: 200px; /* Reduced height */
    overflow: hidden;
}

    .image img {
        width: 100%;
        height: 100%;
        object-fit: inherit;
        filter: grayscale(100%); /* Initially black-and-white */
        transition: filter 0.5s ease; /* Smooth transition effect */
    }

.card:hover .image img {
    filter: grayscale(0); /* On hover, color appears */
}

.info {
    padding: 15px;
}

    .info h3 {
        font-size: 15px;
        margin-bottom: 5px;
        color: #333;
    }

    .info p {
        font-size: 14px;
        color: #777;
        text-align: center;
    }

/* Media Query for Small Screens (Mobile - 320px) */
@media (max-width: 320px) {
    .responsive-heading {
        font-size: 20px; /* Reduce font size for smaller mobile devices */
        margin-top: 10px; /* Reduce top margin */
        margin-bottom: 10px; /* Reduce bottom margin */
    }
}

/* Media Query for 375px wide screens (iPhone 6/7/8, small tablets) */
@media (max-width: 480px) {
    .responsive-heading {
        font-size: 22px; /* Slightly larger than 320px screen */
        margin-top: -40px;
        margin-bottom: 12px;
    }
}


/*--------------------------- form loading -------------------------------*/
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex; /* Using Flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.loader-container {
    position: relative;
    width: 100px;
    height: 100px;
    /*top:50px;
    left:50px;*/
}

.rotating-circle {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid transparent;
    animation: spin 5s linear infinite;
    top: -60px;
    left: -60px;
}

    .rotating-circle:nth-child(1) {
        border-top: 4px solid #6aaf08;
        animation-duration: 3s;
    }

    .rotating-circle:nth-child(2) {
        border-bottom: 4px solid black;
        animation-duration: 2s;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.loader-container img {
    position: absolute;
    /*   top: 0;
    left: 30%; */
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    animation: fadeBounce 2s infinite alternate;
}

/* Simple fade and bounce effect */
@keyframes fadeBounce {
    0% {
        opacity: 0.5; /* Start with low opacity */
        transform: translate(-50%, -50%) translateY(-10px); /* Move image up */
    }

    100% {
        opacity: 1; /* Full opacity */
        transform: translate(-50%, -50%) translateY(10px); /* Move image down */
    }
}