/*------------------- header-footer css----------------------------*/
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(rgb(189, 192, 211), rgb(196, 157, 196));
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Header container */
header {
  background: linear-gradient(to right, rgb(83, 83, 165), rgb(233, 123, 147)); /* gradient */
  color: white; /* White text */
  padding: 15px 0;
}

/* Logo section */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  margin-right: 10px; /* Spacing between logo and text */
}

.logo h6 {
  font-size: 16px;
  font-weight: bold;
}

/* Navigation menu */
nav .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav .nav-item {
  margin-left: 20px; /* Space between menu items */
}

nav .nav-link {
  color: white; /* White text for menu links */
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease; /* Smooth hover transition */
}

nav .nav-link:hover {
  color: #ffd700; /* Change to gold on hover */
}

/* Responsive design for mobile screens */
@media (max-width: 768px) {
  header .container {
      flex-direction: column;
      text-align: center;
  }

  .logo img {
    width: 50px; /* Reduce logo size for smaller screens */
  }

  .logo h6 {
    font-size: 14px; /* Reduce font size for smaller screens */
  }

  nav .nav {
      flex-direction: column;
      margin-top: 10px;
  }

  nav .nav-item {
      margin-left: 0;
      margin-top: 10px;
  }

  nav .nav-link {
    font-size: 16px; /* Increase link font size for better readability on mobile */
    padding: 10px 0;
  }
}

/* Footer Styling */
footer {
  background-color: #343a40; /* Dark grey background */
  color: white; /* White text */
  padding: 20px 0; /* Padding for the footer */
}

footer p {
  margin: 0; /* Remove margin from paragraphs */
  font-size: 14px; /* Footer text size */
}

footer .list-unstyled {
  list-style: none; /* Remove bullets from the list */
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margin */
}

footer .list-unstyled li {
  margin-bottom: 10px; /* Space between links */
}

footer .list-unstyled li a {
  color: white; /* White text for links */
  text-decoration: none; /* Remove underline from links */
  transition: color 0.3s ease; /* Smooth hover transition */
}

footer .list-unstyled li a:hover {
  color: #ffd700; /* Change to gold on hover */
}

footer .text-right {
  text-align: right; /* Right-align text on larger screens */
}

footer .text-right p {
  margin-top: 10px; /* Space between "Developed by" text and links */
}

/* Responsive design for footer */
@media (max-width: 768px) {
  footer .text-right {
      text-align: left; /* Align text to the left on smaller screens */
      margin-top: 20px;
  }

  footer .row {
      flex-direction: column; /* Stack columns vertically on smaller screens */
  }

  footer p {
    font-size: 12px; /* Slightly reduce footer text size on small screens */
  }
}

/* home page using even odd thing* with class we use dot and with id we use hash# remember ashu */
#h1{
  color: #007BFF;
}
.even{
  color: red;
 }
.odd{
  color: #415366;
  
}
.my-5{
  background-color: #d6dce4;
}
/* --------------------login page on root css---best responsive...all devices ---------------------------------------------*/

/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Header Styles */
header {
  background-color: #007bff;
  color: #fff;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

/* Main Content Styles */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-md-8, .col-md-4 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .col-md-8 {
      flex: 0 0 66.666667%;
      max-width: 66.666667%;
  }
  .col-md-4 {
      flex: 0 0 33.333333%;
      max-width: 33.333333%;
  }
}

h2 {
  color: #007bff;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

h3#imp1 {
  color: #28a745;
  border-bottom: 2px solid #28a745;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 0.5rem;
}

/* Form Styles */
#bli {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  box-sizing: border-box;
}

.btn-primary {
  background-color: #007bff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  width: 100%;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* CAPTCHA Styles */
img[src="captcha.php"] {
  border: 1px solid #ddd;
  border-radius: 4px;
  max-width: 100%;
  height: auto;
}

/* Alert Styles */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .row {
      flex-direction: column;
  }
  
  .col-md-8, .col-md-4 {
      width: 100%;
      margin-bottom: 2rem;
  }
  
  h2 {
      font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  header h1 {
      font-size: 1.5rem;
  }
  
  h2 {
      font-size: 1.2rem;
  }
  
  #bli {
      padding: 1rem;
  }
}

/* Footer Styles */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  width: 100%;
}
/*--------------------------applyform.php----------------*/
/* General Styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Form Styles */
form {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

input[type="file"] {
  padding: 5px;
}

input[readonly] {
  background-color: #f9f9f9;
  cursor: not-allowed;
}

/* Button Styles */
.btn-primary {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* Alert Styles */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Important Information Styles */
#important-info {
  background-color: #e9ecef;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

#imp1 {
  color: #007bff;
  margin-bottom: 15px;
}

#imp2 {
  margin-bottom: 10px;
}

#imp2.even {
  background-color: #f8f9fa;
}

#imp2.odd {
  background-color: #e9ecef;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .col-md-4, .col-md-8 {
      width: 100%;
      padding: 0;
  }

  #important-info {
      margin-bottom: 30px;
  }

  .form-control {
      font-size: 14px;
  }

  .btn-primary {
      width: 100%;
  }
}

@media (max-width: 576px) {
  body {
      font-size: 14px;
  }

  .container {
      padding: 0 10px;
  }

  form {
      padding: 15px;
  }

  #imp1 {
      font-size: 18px;
  }

  #imp2 {
      font-size: 14px;
  }
}

/*--------------------------output.php------------------------------------------*/
/* Container for Printable Area */
#printableArea {
  width: 600px; /* Fixed width for larger screens */
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px auto; /* Center-align */
}

/* Header Text Styles */
.header-text {
  text-align: center;
  margin-bottom: 20px;
}

.header-text .logo {
  width: 100px; /* Fixed logo size */
  display: block;
  margin: 0 auto 10px;
}

.header-text h1,
.header-text h2,
.header-text h3 {
  margin: 5px 0;
}

/* Table Styles */
.table {
  width: 100%; /* Full width */
  border-collapse: collapse; /* Collapse borders */
  margin-top: 20px;
}

.table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left; /* Align content to the left */
  word-wrap: break-word; /* Wrap text to avoid overflow */
}

/* PDF Download Button */
.pdf-download-container {
  text-align: center; /* Center-align button */
  margin-top: 20px;
}

.pdf-download-btn {
  background-color: rgb(83, 83, 165);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 16px; /* Default font size for button */
  display: inline-block; /* Prevent squishing on smaller screens */
}

.pdf-download-btn:hover {
  background-color: rgb(233, 123, 147);
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  #printableArea {
    width: 95%; /* Use almost full width on smaller screens */
    padding: 15px; /* Reduced padding */
    margin: 10px auto; /* Centered with adjusted margins */
  }

  .header-text h1,
  .header-text h2,
  .header-text h3 {
    font-size: 14px; /* Reduce font sizes for headings */
  }

  .table td {
    font-size: 12px; /* Smaller font size for table data */
    padding: 8px; /* Adjust padding for compactness */
  }

  .pdf-download-btn {
    font-size: 10px; /* Smaller button font size */
    padding: 8px 16px; /* Adjust padding for smaller buttons */
    width: 80%; /* Make the button occupy more horizontal space */
    max-width: 300px; /* Limit maximum width for consistency */
  }

  .pdf-download-container {
    margin-top: 15px;
  }
}
