/* General Styles */
body {
  background: #111827 url("./img/bg.webp") no-repeat center center fixed; /* Fixed background image */
  background-size: cover; /* Ensure the image covers the entire viewport */
  color: #ffffff; /* Ensure text is white for better readability */
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
  min-height: 100vh; /* Ensure the body covers the full viewport height */
}

/* Horizontal Flag Lines Fixed at Header Bottom */
.header-lines {
  position: absolute;
  width: 100%; /* Ensures lines span the full width of the header */
  display: flex;
  flex-direction: column;
  bottom: 0;
}

/* Horizontal Flag Lines Fixed at Footer Top */
.footer-lines {
  position: relative; /* Keeps the lines at the top of the footer */
  top: 0; /* Aligns lines to the top of the footer */
  width: 100%; /* Ensures lines span the full width of the footer */
  display: flex;
  flex-direction: column;
}

.line {
  width: 100%; /* Full width */
  height: 3px; /* Height of each line */
}

.saffron {
  background-color: #ff9933; /* Saffron color */
}

.white {
  background-color: #ffffff; /* White color */
}

.green {
  background-color: #138808; /* Green color */
}

.footer-text {
  color: aliceblue;
}

/* Improve Navbar Background & Text */
.navbar {
  background-color: #111827ed; /* Fixed custom background color */
}

/* Logo Size Adjustment for Mobile */
@media (max-width: 768px) {
  .navbar-brand img {
    width: 40px;
    height: 40px;
  }
}

/* New Modern Card Styles */
.custom-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  backdrop-filter: blur(10px); /* Blur effect for glassmorphism */
  color: #ffffff; /* White text for better contrast */
  margin: 1rem; /* Add spacing around cards */
  flex: 1 1 calc(25% - 2rem); /* Flexible width for cards */
  max-width: calc(25% - 2rem); /* Maximum width for cards */
  min-width: 250px; /* Minimum width for cards */
  overflow: hidden; /* Ensure content stays within the card */
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-title {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff; /* White text for better contrast */
  margin-bottom: 0.5rem; /* Add spacing below the title */
}

.card-text {
  font-size: 1.2rem;
  color: #d1d5db; /* Light gray text for better contrast */
}

/* Add a subtle border to the card for better definition */
.custom-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  pointer-events: none; /* Ensure the border doesn't interfere with clicks */
}

/* Flexbox-Based Card Container */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center cards horizontally */
  gap: 1.5rem; /* Add spacing between cards */
  padding: 1rem; /* Add padding around the container */
}

/* Responsive Layout for Cards */
@media (max-width: 767.98px) {
  .custom-card {
    flex: 1 1 calc(50% - 2rem); /* 2 cards per row on small screens */
    max-width: calc(50% - 2rem); /* 2 cards per row on small screens */
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .custom-card {
    flex: 1 1 100%; /* 1 card per row on extra small screens */
    max-width: 100%; /* 1 card per row on extra small screens */
  }
}

/* Custom CSS for rounded table edges */
.rounded-table {
  border-radius: 5px; /* Adjust the radius as needed */
  overflow: hidden; /* Ensures the corners are rounded */
}

/* Form Elements */
.form-control,
.form-check-input,
.form-select {
  background-color: #1a1a1a45; /* Darker background for form elements */
  color: #ffffff; /* White text */
  border: 1px solid #66666688; /* Darker border */
}

.form-control:focus,
.form-select:focus {
  background-color: #1a1a1a; /* Slightly lighter on focus */
  border-color: #666666; /* Lighten border on focus */
  box-shadow: none; /* Remove default Bootstrap shadow */
  color: #ffffff; /* White text */
}

.form-check-input:checked {
  background-color: #0d6efd; /* Bootstrap primary blue for checked state */
  border-color: #0d6efd;
}

/* Card Styles */
.custom-card {
  background-color: #1a1a1a3a; /* Darker card background */
  border: 1px solid #2d2d2d78; /* Darker border */
  margin: 0 auto; /* Center the card */
  width: 90%; /* Default width for small screens */
  max-width: 90%; /* Ensures it doesn't exceed 90% on small screens */
  color: #ffffff; /* White text */
}

/* Large screens (≥992px) */
@media (min-width: 992px) {
  .custom-card {
    width: 70%; /* Set to 70% for large screens */
    max-width: 70%; /* Ensure it doesn't exceed 70% */
  }
}

.custom-card .card-title,
.custom-card .card-subtitle {
  color: #ffffff !important; /* Ensure titles are white */
}

/* Button Styles */
.btn-outline-info {
  color: #0dcaf0; /* Bootstrap info color */
  border-color: #0dcaf0;
}

.btn-outline-info:hover {
  background-color: #0dcaf0; /* Solid background on hover */
  color: #121212; /* Dark text on hover */
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  body {
    padding-top: 80px; /* Reduce padding for mobile */
    padding-bottom: 30px;
  }

  .custom-card {
    width: 90%; /* Slightly smaller card on mobile */
  }
}

/* Placeholder Text Color */
::placeholder {
  color: #ffffff !important; /* White color */
  opacity: 0.7; /* Slight transparency for better readability */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #ffffff !important;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #ffffff !important;
}

@font-face {
  font-family: "ChelseaMarket";
  src: url("./fonts/ChelseaMarket.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.headFont {
  font-family: "ChelseaMarket";
  font-size: 30px; /* Default font size for larger screens */
}

/* Small font size for mobile screens */
@media (max-width: 600px) {
  .headFont {
    font-size: 14.7px;
  }
}

@font-face {
  font-family: "PatrickHand";
  src: url("./fonts/PatrickHand.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.btnFonts {
  font-family: "PatrickHand";
}

@font-face {
  font-family: "Caveat";
  src: url("./fonts/Caveat.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.footerText {
  font-family: "Caveat"; 
}

@font-face {
  font-family: "Itim";
  src: url("./fonts/Itim.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.headText {
  font-family: "PatrickHand";
}

.btnFonts2 {
  font-family: "Itim";
}

@font-face {
  font-family: "NotoSerifGujarati";
  src: url("./fonts/NotoSerifGujarati.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.gujFonts {
  font-family: "NotoSerifGujarati";
  font-size: 20px;
}

/* Small font size for mobile screens */
@media (max-width: 600px) {
  .gujFonts {
    font-size: 15px;
  }
}

@font-face {
  font-family: "Kalam";
  src: url("./fonts/Kalam-Light.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.tHead {
  font-family: "Kalam";
}