.container-blog {
    text-align: center;
    max-width: 1200px; /* Restricts width for better readability */
    margin: 0 auto; /* Centers the form and images */
}

.img-container {
    display: inline-block;
    text-align: center;
    margin: 10px;
}

.img-container img {
    display: block; /* Prevents extra space below the image */
    width: 100%; /* Ensures image is responsive */
    height: auto;
    width: 260px;
    height: 210px;
}

.img-text {
    display: block; /* Ensures the text appears below the image */
    margin-top: 5px; /* Adds spacing between image and text */
    font-size: 14px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Softens the shadow */
    background-color: black; /* Black background */
    padding: 8px 12px; /* Padding for better readability */
    border-radius: 5px; /* Slight rounding for aesthetics */
    display: inline-block; /* Keeps text neatly wrapped */
}

/* ✅ FORM STYLES */
.form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: left; /* Aligns form labels and inputs */
    max-width: 500px;
    margin: 20px auto; /* Centers the form */
}

.form-container h2 {
    text-align: center;
    margin-bottom: 15px;
}

/* ✅ Style Form Fields */
.form-container label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ✅ Adjust File Upload Input */
.file-upload-container {
    display: flex;
    flex-direction: column; /* Ensures label is above file input */
    align-items: flex-start; /* Aligns text to the left */
    margin-top: 15px; /* Adds space before file input */
}

.file-input {
    margin-top: 5px; /* Space between label and file input */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


/* ✅ Push the content below the fixed menu */
body {
    padding-top: 25px; /* Adjust this based on your menu height */
}

/* ✅ Make sure the form is not hidden */
.container-blog {
    margin-top: 50px; /* Adds space between menu and form */
}
h1 {
    margin-top: 150px; /* Adjust as needed */
}
.img-blog img {
    width: 240px;
    height: 200px;
    object-fit: cover; /* optional, keeps aspect ratio nicely */
}



/* ✅ Mobile-Friendly Adjustments */
@media only screen and (max-width: 768px) {
    .social-icons {
        display: none;
    }

    .img-text {
        font-size: 12px; /* Adjusts text size for small screens */
        padding: 6px 10px;
    }

    .form-container {
        max-width: 90%; /* Makes form fit smaller screens */
        padding: 15px;
    }

    .apply-button {
        font-size: 14px;
        padding: 10px;
    }
}





/*   old code text on top of the img. */


	/* .container-blog {
	  text-align: center;
	}

.img-container {
	  position: relative;
	  display: inline-block;
	  text-align: center;
	  margin: 10px;
	}

.img-text {
	  position: absolute;
	  top: 80%;
	  left: 50%;
	  transform: translate(-50%, -50%);
	  /* background-color: rgba(255, 255, 255, 0.8);
	  padding: 0px;
	  color: white; /* Set the text color to white 
	  text-shadow: 2px 2px 4px rgba(0, 0, 0, 2);  Add the drop shadow 
	}
	/* Media query for smaller screens 
@media only screen and (max-width: 768px) {
   Hide the social icons 
  .social-icons {
    display: none;
  }
  
  .img-text {
	  position: absolute;
	  top: 80%;
	  left: 50%;
	  transform: translate(-50%, -50%);
	  /* background-color: rgba(255, 255, 255, 0.8);
	  padding: 0px;
	  color: white; /* Set the text color to white 
	  text-shadow: 2px 2px 4px rgba(0, 0, 0, 2);  Add the drop shadow 
	}
}
	*/