html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;       
    min-height: 100vh; /* Ensure body takes full viewport height */

}


header {
    background-color: #1F2E3D;
    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;
}


.search-bar {
    flex-grow: 1;
    max-width: 450px;
    margin-left: 0px;
    margin-right: auto;
   position: relative; /* Required for positioning the close icon */
}

.search-bar input {
    width: 100%;
    padding: 15px;
    border-radius: 20px;
    border: none;
    margin-right: 10px; /* Space between search bar and navigation */
}

.close-icon {
    position: absolute;
    top: 50%;
    right: 15px; /* Adjust as needed */
    transform: translateY(-50%);
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-icon:hover {
    color: #333;
}

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;
}



/* Banner container */
.banner {
  width: 100%;
  max-height: 400px; /* Full height of the container */
  position: relative; /* Allow absolute positioning for text */
  overflow: hidden; /* Prevent text overflow issues */
      box-sizing: border-box; /* Ensures padding is included in the width */

}

/* Image styling */
.banner-img {
  width: 100%; /* Full width of the container */
  max-height: 400px; /* Full height of the container */
}

/* Content container */
.banner-content {
  position: absolute; /* Overlay the content on top of the image */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Correct centering alignment */
  text-align: center;
  color: #FFFFFF;
}

/* Title styling */
.banner-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 35px;
  color: #FF6E4E;
  margin: 0;
  line-height: 1.2; /* Adjust spacing between the two lines */

}

/* Underline */
.banner-underline {
  width: 20%;
  height: 3px;
  background-color: #000;
  margin: 10px auto;
}

/* Subtitle styling */
.banner-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #000;
  margin: 20px 0 0;
  line-height: 1.6; /* Line height for better readability */
  max-width: 80%; /* Limit width to control text wrapping */
  word-wrap: break-word; /* Ensure words break appropriately */
  margin-left: auto;
  margin-right: auto;
}


/* Filters container */
.filters-container {
 display: flex; /* Use Flexbox for side-by-side alignment */
justify-content: center; /* Center-align sections with minimal gap */
  align-items: flex-start; /* Align sections to the top */
  margin-top: -80px; /* Adjust so 30% lies on the banner */
  z-index: 2;
  padding: 20px;
  gap: 20px; /* Add space between sections */
}

/* Filter section */
.filter-section {
  flex: 0 0 40%; /* Restrict each section to 40% of the container width */
  background: #fff;
  padding: 20px;
  border-radius: 9px;
box-shadow: 0 6px 12px 2px rgba(0, 0, 0, 0.25);
}



/* Filter buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  padding: 8px 15px;
  font-size: 14px;
  color: #007bff; /* Blue text */
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-buttons button:hover {
  background: #e3f2fd;
  border-color: #007bff;
}

/* 'View More' Button */
.filter-buttons .more-btn {
  font-weight: bold;
  color: #007bff;
  border-color: transparent;
  background: none;
  cursor: pointer;
}

/* Active state for filter buttons */
.filter-buttons button.active {
  background: #007bff; /* Blue background */
  color: #fff; /* White text */
  border-color: #007bff;
}

.filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.clear-filter-btn {
    background-color: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    margin-left: 10px; /* Space between title and button */
}

.clear-filter-btn:hover {
    color: #f00; /* Highlight the cross button on hover */
}

.filter-section h2 {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure the button is at the right end */
    font-size: 15px;
  margin-bottom: 10px;
}



.main-content.container {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    flex-wrap: wrap; /* Prevent wrapping */
    flex: 1;

}



/* Content Left (Job Listings + Google Ads) */
.content-left {
    flex: 3;
    display: flex;
    flex-direction: column;
}

/* 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: 10px;
    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: 0px;
    margin-left: 0px;

}

.job-listings-grid .job h6 {
    font-size: 0.8rem; /* Scale dynamically using rem */
    margin-bottom: 0px;
    margin-top: 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;
    
}




/* Main Resource Container */
.resource-container {
    padding: 10px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent unwanted horizontal scroll */
    margin:0;
}

/* Resource Header */
.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.resource-header h2{
    font-size: 1.2em;
}

.view-all {
    font-size: 0.9em;
    text-decoration: none;
    color: #007bff;
    white-space: nowrap; /* Prevent line break */
    padding-right: 10px;
}

/* Resource Grid */
.resource-grid {
     display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Flexible columns */
    gap: 15px; /* Space between grid items */
    margin-top: 20px; /* Add space above */
    padding: 0;
    width: 100%;
    box-sizing: border-box; /* Ensures consistent width */
}

/* Resource Item */
.resource-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Resource Item Image */
.resource-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Maintain aspect ratio */
    display: block;
}

/* Resource Content */
.resource-content {
    padding: 10px;
    text-align: left;
}

.resource-content h4 {
    font-size: 1em;
    margin: 0;
    color: #333;
}

.posted-date {
    font-size: 0.8em;
    color: #999;
    text-align: right;
    margin-top: 5px;
}


/* Remove any excessive margin/padding causing gaps */
.job-listings-grid,
.resource-grid {
    margin: 0;
    padding: 0;
}


/* 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: 0px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.google-ads-row ins:empty {
    display: none; /* Hide empty ad spaces */
}

.ad-placeholder {
    display: none; /* Initially hidden */
    background-color: #f0f0f0;
    padding: 10px;
    text-align: center;
    color: #333;
}

/* Show the placeholder when ads are not loaded */
.google-ads-row ins:empty + .ad-placeholder {
    display: block;
}



/* 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: 1fr; /* Two ads in a row */ /* 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 */
}

.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 */

   
}

 .mrp {
            text-decoration: line-through;
            color: gray;
        }

.a-description {
    font-size: 0.9rem; /* Dynamically scale the font */
    color: black;           /* Sets the text color to black */
    margin-top: 2px;

}


.more-link a {
    text-align: center;
    display: block;
    margin-top: 10px;
    font-size: small;
}


/* Price Section */
.price-section {
    margin-top: 0px;
}

.price-section .discount {
    color: red;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 4px;
}

.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;
}



.job-title {
    margin-left: 20px;
    padding: 10px;
}

.job-details {
    flex: 3;
    
}

.job-details section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-container {
    width: 100%; /* Make the container take up full width */
    display: flex;
    justify-content: center; /* Center the image horizontally */
}

.job-detail-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.custom-alert {
    background-color: #ffcc00;
    color: #333;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ff9900;
    border-radius: 4px;
    margin-bottom: 20px;
}

.main-content.aboutcont {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    flex-wrap: wrap; /* Ensure content wraps on smaller screens */
    flex: 1;
}

.about-section {
    position: relative; /* Establishes a containing block for the absolutely positioned logo */
    text-align: center;
    padding: 50px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;    
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.about-section .logo-center img{
    text-align: center;
    margin-bottom: 0px;
    height: 200px;
    width: auto;
    align-items: center;
}

.logo-center {
    position: absolute;
    top: 50%; /* Centers vertically */
    left: 50%; /* Centers horizontally */
    transform: translate(-50%, -50%); /* Moves the logo back by 50% of its own height and width */
    opacity: 0.4; /* Makes the logo transparent */
    z-index: 1; /* Places the logo behind the text */
}

.logo-center img {
    width: 200px; /* Adjust to desired size */
    height: auto; /* Maintains aspect ratio */
}

.about-section h1,
.about-section h2,
.about-section p {
    position: relative; /* Keeps text on top of the logo */
    z-index: 1; /* Ensures text is above the logo */
}


.about-section h1, h2 {
    color: #333;
    margin-top: 20px;
    margin-left: 10px;
    
}

.about-section p {
    color: #555;
    line-height: 1.6;
    margin-left: 10px;
}

/* Footer Styles */

.footer {
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
    position: relative;
    height: 250px; /* Ensures footer has enough height to fit the content */
    overflow: hidden; /* Prevent content from spilling outside */
        box-sizing: border-box; /* Ensures padding is included in the width */

}

.footer_main {
   width: 100%;
  height: 250px; /* Full height of the container */
  position: relative; /* Allow absolute positioning for text */
  overflow: hidden; /* Prevent text overflow issues */
}

.footer_bg-img {
    width: 100%;
    max-height: 250px; /* Ensures the image fully covers the footer */

}


.footer-container {
   position: absolute; /* Overlay the content on top of the image */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Correct centering alignment */

}

/* Footer Links and Policies */
.footer-links,
.footer-policies {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex; /* Makes items horizontal */
    justify-content: center; /* Centers items horizontally */
    gap: 35px; /* Adds space between links */

}

.footer-links li,
.footer-policies li {
    display: inline-block; /* Ensures links are inline */
}

/* Footer Links Styling */
.footer-links a,
.footer-policies a {
    color: #FF6E4E;
    text-decoration: none;
    font-size: 18px;
}

.footer-links a:hover,
.footer-policies a:hover {
    text-decoration: underline;
}

/* Social Links - Bottom Right */
.footer-social {
    position: absolute;
    top: 55%; /* Start at 50% from the top */
    left: 4%; /* Align slightly from the left */
    transform: translateY(-50%); /* Move upward by half its height to center vertically */
    text-align: center; /* Centers the title and icons horizontally */
}

.footer::after {
    content: "";
    position: absolute;
    top: 50%; /* Start at 50% of the footer */
    transform: translateY(-45%); /* Shift it upward by half of the height (90% / 2) */
    height: 80%; /* Set height to 90% of the footer */
    left: calc(9% + 100px); /* Position it relative to the social links */
    width: 2px; /* Width of the separator */
    background: repeating-linear-gradient(
        to bottom,
        #FF6E4E,
        #FF6E4E 5px,
        transparent 5px,
        transparent 10px
    ); /* Dotted effect */
}



/* Social Title */
.social-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #000; /* Black color for the title */
    margin: 0; /* Removes unwanted spacing */
    line-height: 1.6; /* Better readability */
}

/* Underline */
.social-underline {
    width: 50%; /* Adjust width for a balanced look */
    height: 2px; /* Slightly thinner underline */
    background-color: #000; /* Black underline */
    margin: 5px auto; /* Centers underline and adds spacing below */
}

/* Social Icons */
.footer-social-icons {
    display: flex; /* Align icons horizontally */
    justify-content: center; /* Centers the icons */
    gap: 15px; /* Space between icons */
    margin-top: 10px; /* Adds spacing between the underline and icons */
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: #FF6E4E; /* Placeholder background for visibility */
    border-radius: 50%; /* Makes icons circular */
}


/* Responsive Styles */

@media screen and (max-width: 1024px) {
  /* Styles for tablets in landscape */
  
      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;
    }
    
     /* Banner Adjustments */
    .banner {
        max-height: 400px;
    }

    .banner-img {
        max-height: 400px;
    }

  .banner-title {
  
  font-size: 25px;
 
}


/* Subtitle styling */
.banner-subtitle {
  font-size: 14px;
  
}
 
 .filters-container {
    justify-content: space-between; /* Space sections evenly */
    margin-top: -40px; /* Adjust so 30% lies on the banner */

  }

.filter-section {
    flex: 0 0 45%; /* Adjust width to fit side-by-side */
  }
   
     .resource-grid {
        display: grid;
        /*grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
                grid-template-columns: repeat(2, 1fr); /* Two ads in a row */

        gap: 15px;
        width: 100%; /* Full width */
        margin-top: 20px; /* Spacing from previous content */
    }
    .job-listings-grid{
        grid-template-columns: repeat(2, 1fr); /* Two ads in a row */
    }
    .job-listings-grid .job {

        width: 100%;

    }
    
    .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;
    }

   
   
     .amazon-ads-grid {
        grid-template-columns: 1fr; /* Two ads in a row */
        margin-top: 0px;
        margin-right: 0px;
        margin-left: 0px;
        
    }

    .amazon-ads-grid .amazon-ad {
       width: 100%;
       
    }

    .google-ads-row {
       
        grid-template-columns: 1fr
    }

 /* Footer Adjustments */
    
.footer {
        height: 150px;
        background-color:orange;
    }

    .footer_main {
        height: 150px;
    }
    
    .footer_bg-img {
        height: 150px;
    }
    
     .footer-links,
.footer-policies {
   
    gap: 15px; /* Adds space between links */

}

.footer-links a,
.footer-policies a {
   
    font-size: 14px;
}
  
}

@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;
    }

    
         /* Banner Adjustments */
    .banner {
        max-height: 400px;
    }

    .banner-img {
        max-height: 400px;
    }

   
   .banner-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;

    }


 .banner-title {
  
  font-size: 16px;
  margin-top:10px;
 
}

.banner-underline {
  
  height: 2px;
  margin: 5px auto;
}


/* Subtitle styling */
.banner-subtitle {
  font-size: 12px;
  margin: 5px 0 0;
  line-height: 1.2; /* Line height for better readability */
  margin-left: auto;
  margin-right: auto;
max-width: 100%; /* Limit width to control text wrapping */

  
}

.filters-container {
    justify-content: space-between; /* Space sections evenly */
    gap: 10px; /* Reduce space between sections */
    margin-top: -30px; /* Adjust so 30% lies on the banner */

  }

  .filter-section {
    flex: 0 0 46%; /* Adjust width to fit side-by-side */
    padding: 10px; /* Compact padding */
  }

  .filter-buttons button {
    font-size: 10px; /* Smaller font size for buttons */
    padding: 6px 10px; /* Compact button size */
  }

  .filter-buttons button.more-btn {
    font-size: 10px; /* Adjust size for "View More" */
  }

  .filter-section h2 {
    font-size: 14px; /* Adjust header size */
  }
    
    .main-content.container {
        flex-direction: column; /* Stack job listings and ads vertically on smaller screens */
    } 
    
    .content-left {
        flex: 1 1 100%; /* Full width for content-left */
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* content-right takes its space beside job grid */
    .content-right {
        flex: 1 1 100%; /* Full width below job-list grid */
        margin-left: 0; /* Remove extra margin */
    }
   
   
     .resource-grid {
        display: grid;
        /*grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
                grid-template-columns: repeat(2, 1fr); /* Two ads in a row */

        gap: 15px;
        width: 100%; /* Full width */
        margin-top: 20px; /* Spacing from previous content */
    }
    .job-listings-grid{
        grid-template-columns: repeat(2, 1fr); /* Two ads in a row */
    }
    .job-listings-grid .job {

        width: 100%;

    }
    
    .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;
    }

   
     .amazon-ads-grid {
        grid-template-columns: repeat(2, 1fr); /* Two ads in a row */
        margin-top: 20px;
        margin-right: 0px;
        margin-left: 0px;
        
    }

    .amazon-ads-grid .amazon-ad {
       width: 100%;
       
    }

    .google-ads-row {
       
        grid-template-columns: 1fr
    }


   .footer {
        height: 150px;
        background-color:orange;
    }

    .footer_main {
        height: 150px;
    }
    
    .footer_bg-img {
        height: 150px;
    }
    
  .footer-links,
.footer-policies {
   
    gap: 15px; /* Adds space between links */

}

.footer-links a,
.footer-policies a {
   
    font-size: 12px;
}
}

@media screen and (max-width: 480px) {
   
    .logo img {
        height: 100px;
        width: auto;
        margin-left: 0px;
    
    }
    .search-bar {
        width: auto;   
        margin-right: 20px;            
    }
    .search-bar input {
        padding: 8px;
    }
    
     /* Banner Adjustments */
    .banner {
        max-height: 400px;
    }

    .banner-img {
        max-height: 400px;
    }

    .banner-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        padding: 0 5px; /* Add some padding for smaller screens */
    }

    .banner-title {
        font-size: 12px;
        white-space: nowrap; /* Prevent line breaks */
        display: inline-block; /* Ensure the text stays in one line */
          line-height: 0; /* Adjust spacing between the two lines */

    }
    
    .banner-underline {
        width: 30%; /* Increase underline width slightly */
          margin: 0px auto;
          height: 1px;

    }

    .banner-subtitle {
        font-size: 8px;
          line-height: 0.9; /* Line height for better readability */
          margin-bottom: 3px;
            max-width: 100%; /* Limit width to control text wrapping */
            margin: 2px 0 0;

    }
    
    .filters-container {
    justify-content: space-between; /* Space sections evenly */
    gap: 10px; /* Reduce space between sections */
    margin-top: -15px; /* Adjust so 30% lies on the banner */
    padding: 5px;

  }

  .filter-section {
    flex: 0 0 45%; /* Adjust width to fit side-by-side */
    padding: 6px; /* Compact padding */
  }

  .filter-buttons button {
    font-size: 10px; /* Smaller font size for buttons */
    padding: 6px 10px; /* Compact button size */
  }

  .filter-buttons button.more-btn {
    font-size: 10px; /* Adjust size for "View More" */
  }

  .filter-section h2 {
    font-size: 14px; /* Adjust header size */
  }
    
     .main-content.container {
        flex-direction: column; /* Stack job listings and ads vertically on smaller screens */
    } 
    
    .job-listings-grid{
        grid-template-columns: 1fr; /* Two ads in a row */
    }
    .job-listings-grid .job {

        width: 100%;

    }

    .job {
        padding: 5px;
    }
    
  .resource-grid {
        display: grid;
        /*grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
        grid-template-columns: 1fr; /* Two ads in a row */

        gap: 5px;
        width: 100%; /* Full width */
        margin-top: 10px; /* Spacing from previous content */
    }

  .content-right {
    
    margin-left: 0px;
}
   
     .amazon-ads-grid {
        grid-template-columns: repeat(2, 1fr); /* Two ads in a row */
        margin-top: 20px;
        margin-right: 0px;
        margin-left: 0px;
        
    }

    .amazon-ads-grid .amazon-ad {
       width: 100%;
       
    }
    .short-description {
        -webkit-line-clamp: 1;
        line-clamp: 1; /* Limit to 1 line on very small screens */
        max-height: 1.8em;
    }
    
    .footer {
        height: 100px;
    }

    .footer_main {
        height: 100px;
    }
    
    .footer_bg-img {
        height: 100px;
    }
    
     .footer-links,
.footer-policies {
   
    gap: 5px; /* Adds space between links */

}

.footer-links a,
.footer-policies a {
   
    font-size: 10px;
}

.footer-social {
    position: absolute;
    top: 55%; /* Start at 50% from the top */
    left: 2%; /* Align slightly from the left */
    transform: translateY(-50%); /* Move upward by half its height to center vertically */
    text-align: center; /* Centers the title and icons horizontally */
}

.footer::after {
    content: "";
    position: absolute;
    top: 50%; /* Start at 50% of the footer */
    transform: translateY(-45%); /* Shift it upward by half of the height (90% / 2) */
    height: 80%; /* Set height to 90% of the footer */
    left: calc(1% + 80px); /* Position it relative to the social links */
    width: 2px; /* Width of the separator */
    background: repeating-linear-gradient(
        to bottom,
        #FF6E4E,
        #FF6E4E 5px,
        transparent 5px,
        transparent 10px
    ); /* Dotted effect */
}



/* Social Title */
.social-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #000; /* Black color for the title */
    margin: 0; /* Removes unwanted spacing */
    line-height: 1.2; /* Better readability */
}

/* Underline */
.social-underline {
    width: 50%; /* Adjust width for a balanced look */
    height: 2px; /* Slightly thinner underline */
    background-color: #000; /* Black underline */
    margin: 2px auto; /* Centers underline and adds spacing below */
}

/* Social Icons */
.footer-social-icons {
    display: flex; /* Align icons horizontally */
    justify-content: center; /* Centers the icons */
    gap: 5px; /* Space between icons */
    margin-top: 5px; /* Adds spacing between the underline and icons */
}

.social-icon {
    width: 20px;
    height: 20px;
    background-color: #FF6E4E; /* Placeholder background for visibility */
    border-radius: 50%; /* Makes icons circular */
}
}

/* Handle landscape mode specifically for smaller screens */
@media (orientation: landscape) and (max-width: 812px) {
    header {
        padding: 0; /* Remove padding to ensure header stretches across screen */
        width: 100vw; /* Ensure full width in landscape mode */
    }

    footer {
        padding: 0; /* Remove padding to ensure footer stretches across screen */
        width: 100vw; /* Ensure full width in landscape mode */
    }

}


