


html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    height: 100%;
}





header {
    background-color: #ff6e4e;
    color: white;
    margin: 0; /* Remove default margin */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distributes space evenly between logo/site name and nav */    
    height: 100%; /* Ensures the container fills the header height */
    width: 100%;
}


.logo img {
    height: 100px;
    width: auto;
    margin-left: 30px;

}


nav .menu-toggle {
    display: none; /* Hidden on large screens */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin-right: 20px;
    gap: 20px; /* Space between each navigation item */
    justify-content: flex-end; /* Pushes the nav items to the right */

}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-right: 0px;
}

.main-content.container {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    flex-wrap: wrap; /* Prevent wrapping */
}



.left-content {
    flex: 3;    
    flex-wrap: wrap;    
    margin-bottom: 20px;
    flex-direction: column;

}

.grid-container-cat {
   display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust number of columns */
    gap: 20px;
    margin-bottom: 0px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    box-sizing: border-box;
    
}

.grid-container-loc {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    box-sizing: border-box;
    
}


.category-link{
    display: block;
    text-align: left;  /* Align text to the left */
    padding: 5px;
    color: #333; /* Set initial text color similar to the image */
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
}

.location-link {
    display: block;
    padding: 10px;
    background-color: #ccc;
    text-align: center;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}

.category-link:hover {
    color: blue; /* Change text color to blue on hover */
    text-decoration: underline;
}

 .location-link:hover {
    background-color: #bbb;
    
}

h1, h2 {
    color: #333;
}

ul.list-group {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

ul.list-group .list-item {
    margin-bottom: 10px;
    padding: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

ul.list-group .list-item a {
    text-decoration: none;
    color: #007BFF;
}

ul.list-group .list-item a:hover {
    text-decoration: underline;
}

ul.list-group .job-listing h3 {
    margin: 0;
    color: #333;
}

.back-arrow {
    display: block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    width: fit-content;
}


.content-left {
    flex: 3;
    display: flex;
    flex-direction: column;
        box-sizing: border-box;

}

/* Job Listings Grid */
.job-listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    max-width: 100%; /* Fixed width for the ads section */
    box-sizing: border-box; /* Ensures padding and borders are included in the total width */

}

.job-listings-grid .job {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;    
    justify-content: space-between; /* Align content to the top */
    height: auto; /* Fixed height for uniformity */
    box-sizing: border-box; /* Ensure padding and borders are included in width */
    overflow: hidden; /* Hide any overflowing content */
}

.job-listings-grid .job h2 {
    font-size: 1.0rem; /* Scale dynamically using rem */
    margin-bottom: 10px;
}

.job-listings-grid .job h6 {
    font-size: 0.8rem; /* Scale dynamically using rem */
    margin-bottom: 0px;
    margin: 6px;
}

.job-listings-grid .job img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the container, maintaining aspect ratio */
    margin-bottom: 0px;
    display: block; /* Ensure the image is treated as a block-level element */
    margin-left: auto;
    margin-right: auto; /* Centers the image horizontally */
    max-height: 120px; /* Standard image height */

   
}

.job-listings-grid .job img.only-image {
    max-height: 200px; /* Increase image height if it's the only content */
    display: block; /* Ensure the image is treated as a block-level element */
    margin-left: auto;
    margin-right: auto; /* Centers the image horizontally */
    
}

.short-description {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
    line-height: 1.2em;
    padding: 0;
    margin: 0;
    font-size: 0.8rem; /* Dynamically scale the font */
}

.job-link {
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}


/* Google Ads */
.google-ads-row {
    grid-column: 1 / span 3; /* Ensure it spans across all columns */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two ads in a row */
    gap: 10px; /* Reduced gap between ads */
    margin-top: 10px; /* Add some space above Google ads */
    margin-bottom: 10px;
}

.google-ad {
    background-color: #e9ecef;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}



/* Content Right (Amazon Ads) */
.content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 20px;

}

/* Amazon Ads Grid */
.amazon-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust column width dynamically */
    grid-auto-rows: minmax(150px, auto); /* Adjust the minimum height as needed */
    max-width: 100%; /* Fixed width for the ads section */
    box-sizing: border-box; /* Ensures padding and borders are included in the total width */
    margin-top: 40px;
}

.amazon-ads-grid .amazon-ad {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;    
    height: auto; /* Fixed height for uniformity */
    box-sizing: border-box; /* Ensure padding and borders are included in width */
    overflow: hidden; /* Hide any overflowing content */
}

.amazon-ads-grid .amazon-adds-imag
{
    display: flex;
    justify-content: center; /* Align content to the top */
    align-items: center;
}

.amazon-ads-grid .amazon-ad img {
    max-width: 100%; /* Make image fit the container */
    height: auto; /* Maintain aspect ratio */
    max-height: 200px;
    object-fit: cover; /* Cover the container, maintaining aspect ratio */
    margin: 0px;    
    box-sizing: border-box; /* Ensure padding and borders are included in width */
    overflow: hidden; /* Hide any overflowing content */  
    margin-bottom: 0px;   
}

.amazon-ads-grid .amazon-adds a {
    margin-bottom:0px ;
    font-size: 0.9rem; /* Dynamically scale the font */

   /*  text-decoration: none; Removes underline */

   
}

.a-description {
    font-size: 0.9rem; /* Dynamically scale the font */
    color: black;           /* Sets the text color to black */
    margin: 4px;

}


.more-link a {
    text-align: center;
    display: block;
    margin-top: 10px;
    font-size: small;
}

/* Price Section */
.price-section {
    margin-top: 8px;
}

.price-section .discount {
    color: red;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 8px;
}

.price-section .offer-price {
    font-size: 1.2rem;
    font-weight: bold;
}

.price-section .mrp-label {
    color: black;
    font-size: 0.9rem;
}

.price-section .mrp-value {
    text-decoration: line-through;
    color: gray;
    font-size: 0.9rem;
}
/* Footer Styles */
footer {
    margin-top: auto;
    background-color: #ff6e4e; /* Dark background */
    color: #fff; /* White text */
    text-align: left;
    height: 100px; /* Fixed height for the header */
    align-items: center;
    margin: 0; /* Remove default margin */
    position: relative; /* Ensure it doesn’t overlap content */ 
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0px;
    height: 100%;
    
}

.footer-left {
    display: flex;
    margin-left: 90px; /* Space from the start of the footer */
    height: 80%;
    align-content: center;

}

.footer-links,
.footer-policies {
    list-style: disc;
    padding: 0;
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 0px; /* Space between each link in the list */
    padding: 0px;
   

}

.footer-policies {
    margin-left: 60px; /* Space between the two sets of links */
}

.footer-links li,
.footer-policies li {
    margin-bottom: 10px; /* Remove any default bottom margin */
}

.footer-links a,
.footer-policies a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.footer-links a:hover,
.footer-policies a:hover {
    text-decoration: underline;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns social icons to the right end */
    margin-right: 40px; /* Space from the right end of the footer */
    margin-top: 0px;
    height: 80%;
}

.footer-social-media {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the WhatsApp icon horizontally */
    margin-right: 20px;
    
}

.social-row {
    display: flex;
    gap: 10px; /* Space between Facebook and Instagram icons */
    justify-content: center; /* Center align the icons in their container */
}

.whatsapp-wrapper {
    margin-top: 10px; /* Space between the WhatsApp icon and the row above */
    display: flex;
    justify-content: center; /* Center WhatsApp under the row */
    width: 100%; /* Ensure the WhatsApp icon is centered under the full width */
}

/* Social Icon Size */
.social-icon {
    width: 30px;
    height: 30px;
    margin-left: 20px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    header .container {
        display: flex;
        flex-direction: row;
        height: 80px;
        align-items: center;
        justify-content: space-between; /* Distributes space evenly between logo, search bar, and nav */
    }

    .logo {
        margin-bottom: 0px;
    }

    .search-bar {
        flex-grow: 1;
        max-width: 250px;
        margin-left: 0px;
        margin-right: auto;
        
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 10%; /* Position it below the header */
        width: auto;
        right: 0;
        padding: 20px;  
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: add a shadow for the popup effect */
        z-index: 1000; /* Ensure it is on top */
        align-items: start;
        
    }

    nav ul.active {
        display: flex; /* Show the menu when active */
        
    }

    nav ul.active li a {
        color: #ff6e4e; /* Change to your desired color */
    }

    nav .menu-toggle {
        display: inline-block;
        position: relative;
        cursor: pointer;
        margin-right: 20px;
    }

    nav .menu-toggle div {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 4px 0;
    }

    .main-content.container {
        flex-direction: column; /* Stack job listings and ads vertically on smaller screens */
    }

    .content-left {
        flex: 1; /* Adjust content-left flex to take up full width on smaller screens */
    }

    .job-listings-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Show only two columns */
        grid-auto-rows: fit-content;
        gap: 10px; /* Adjust gap between items */
    }

    .job-listings-grid .job {
        padding: 10px; /* Reduce padding for better fit */

    }

    .job-listings-grid .job img {
        max-height: 100px; /* Ensure the image fits within the smaller grid */
    }
        
    .job-listings-grid .job h2 {
        font-size: 0.8rem;
    }    
    .short-description {
        -webkit-line-clamp: 2;
        line-clamp: 2; /* Limit to 1 line on very small screens */
        font-size: 0.7rem;
    }

    .job-link {
        width: 100%; /* Ensure job items take full grid width */
    }
    
     .content-right {
    
    margin-left: 0px;
}
    .amazon-ads-grid {
        grid-template-columns: repeat(2, 1fr); /* Two ads in a row */
        margin-top: 0px;
        margin-right: 0px;
        
    }

    .google-ads-row {
        
        grid-template-columns: 1fr
    }

    
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-left,
    .footer-right {
        text-align: left;
        margin: 10px 0;
    }

    .footer-right {
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    
    .logo img {
        height: 100px;
        width: auto;
        margin-left: 0px;
    
    }
   
    
    .job {
        padding: 5px;
    }
    
    .content-right {
    
    margin-left: 0px;
}

 .amazon-ads-grid {
        grid-template-columns: repeat(2, 1fr); /* Two ads in a row */
        margin-top: 10px;
        margin-right: 0px;
        
    }

    .short-description {
        -webkit-line-clamp: 1;
        line-clamp: 1; /* Limit to 1 line on very small screens */
        max-height: 1.8em;
    }
    
     .google-ads-row {
        
        grid-template-columns: 1fr
    }


    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-left,
    .footer-right {
        text-align: left;
        margin: 10px 0;
    }

    .footer-right {
        align-items: center;
    }
}




