@font-face {
  font-family: 'flexslider-icon';
  src: url('../fonts/flexslider-icon.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body { margin: 0; font-weight: 400;font-family: 'Hind', sans-serif}
.top-header { background: #01385f; color: #fff; padding: 8px 0; }
.top-header ul { list-style: none; margin: 0; padding: 0; }
.top-header ul li { display: inline-block; margin-right: 15px; }
.top-header a { color: #fff; font-size: 14px; text-decoration: none; }
.logo img {
  float: left;
  padding: 0 15px 0 5px;
}
.logo em {
  font-style: normal;
  color: #000;
  line-height: 1.2;
}
.logo a em {
  display: block;
  font-weight: 900;
  font-size: 110%;
}
/* Thinner Navbar */
.main-menu {
  background-color: #c62828;
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Reduce navbar link padding to make it thin */
.main-menu .navbar-nav .nav-link {
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 15px;
  padding-right: 12px;
  color: #fff;
  position: relative;
}

/* White underline for active menu or home */
/* Active main menu item gets white underline */
/* White underline for active nav links and home icon */
.main-menu .navbar-brand.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

/* Submenu dropdown background and link styling */
.dropdown-menu.show-on-hover {
  background-color: #c00000;
  border: none;
  /* padding: 0; */
  max-width: 280px;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  position: absolute;
  inset: auto auto auto 0;
  padding: 0.5rem 0;
  z-index: 1000;
}
/* Dropdown items with wrapping and padding */
.dropdown-menu .dropdown-item {
  white-space: normal;
  padding: 8px 15px;
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.dropdown-menu.show-on-hover .dropdown-item {
  color: #fff;
  padding: 8px 16px;
}

.dropdown-menu.show-on-hover .dropdown-item:hover {
  background-color: #900000;
  color: #fff;
}

.main-menu .dropdown-menu { background-color: #f8f9fa; }
.main-menu .dropdown-item:hover { background-color: #eee; }
.language-switch select { font-size: 12px; }
.slider-container { position: relative; overflow: hidden; }
/* .slider-container img { width: 100%; height: 400px; object-fit: cover; display: none; } */
.slider-container img {
  width: 100%;
  height: auto;
  max-height: 400px;
  display: none;
}

@media (max-width: 768px) {
  .slider-container img {
    max-height: 200px;
  }
}

.slider-container img.active { display: block; }
.slider-controls {
  position: absolute; bottom: 15px; right: 15px;
  display: flex; gap: 8px; align-items: center;
}
.slider-controls .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid white;
  text-indent: -9999px;
}

.slider-controls a, .slider-controls i {
  color: white; background: red; padding: 4px 8px;
  border-radius: 50%; font-size: 14px; text-decoration: none;
  border: 1px solid #fff;
}
.slider-controls .active-indicator {
  background: white;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: white; border: 2px solid white;
  padding: 10px; cursor: pointer; z-index: 10;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
header.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.banner-wrapper .slider-controls:before {
  content: " ";
  width: 0;
  height: 0;
  border-bottom: 42px solid #D2412D;
  border-left: 15px solid transparent;
  top: -1px;
  left: -15px;
  position: absolute;
}
.banner-wrapper .slider-controls {
  width: auto;
  position: absolute;
  bottom: 0px;
  text-align: left;
  background: #D2412D;
  padding: 0.52em;
  line-height: 0;
  right: 0px;
  padding-right: 45px;
}

/* Home Icon Active Style */
.navbar .navbar-brand.active {
  background-color: #c00000;
  color: #fff !important;
  padding: 8px 12px;
  border-radius: 4px;
}

/* Main Menu Hover */
.main-menu .navbar-nav .nav-item:hover > .nav-link {
  background-color: #c00000 !important;
  color: #fff !important;
}

/* Dropdown on hover */
.navbar-nav .dropdown:hover > .dropdown-menu {
  display: block;
  top: 100%;
  left: 0;
  margin-top: 0;
}

/* Submenu background color */
.dropdown-menu.show-on-hover {
  display: none;
  background-color: #c00000;
}

.dropdown-menu.show-on-hover li a {
  color: white;
}

.dropdown-menu.show-on-hover li a:hover {
  background-color: #900000;
}

/* Always show white underline under home icon */
.main-menu .navbar-brand::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

/* Add underline to menu items when active or hovered */
.main-menu .navbar-nav .nav-link.active::after,
.main-menu .navbar-nav .nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

/* Positioning fix to ensure underline appears under only the text */
.navbar-brand,
.navbar-nav .nav-link {
  position: relative;
}

/*Footer Section */
.carousel-wrapper img {
  height: 60px;
  margin: 5px;
  transition: transform 0.3s ease;
}
.carousel-wrapper img:hover {
  transform: scale(1.05);
}

.footer-wrapper a:hover {
  text-decoration: underline;
}

.footer-wrapper {
  background-color: #222;
  color: white;
  margin: 0 !important;
  padding-top: 0 !important;
}

.footer-wrapper .footer-top-wrapper a {
  margin: 0 10px;
  font-size: 14px;
}

.footer-wrapper .footer-bottom-wrapper {
  font-size: 16px;
}


.carousel-wrapper {
    margin-bottom: 0 !important;
    padding: 0px 0 0px 0px;
    background: url(../uploads/carousel/carousel-bg.png) repeat;
    border-top: 1px solid #d2d2d2;
}
.wrapper {
    position: relative;
}

.footer-top-wrapper {
    padding: 0px 0 !important;
    margin: 0 !important;
    text-align: center;
    padding: 0px 0 0px 0px;
    background: url(../uploads/carousel/footer-top-bg.jpg) repeat #333;
}

.wrapper:before, .wrapper:after {
    display: table;
    line-height: 0;
    content: "";
}
.container.common-container {
    padding: 0px 15px;
    width: 100%;
    position: relative;
}
.container {
    margin: 0 auto;
    display: block;
}
.footer-top-wrapper ul {
    display: inline-block;
    padding: 12px 0px 7px 0px;
    list-style: none;
}
.footer-top-wrapper ul:before, .footer-top-wrapper ul:after {
    display: table;
    line-height: 0;
    content: "";
}
.footer-top-wrapper ul li {
    float: left;
    color: #888888;
}
.footer-top-wrapper ul li:first-child:before {
    content: '';
}
.footer-top-wrapper ul li a, .copyright-content span {
    color: #fff;
}
.footer-top-wrapper ul li a {
    padding: 0px 15px;
    color: #fff;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    text-decoration: none;
    outline: none;
    transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
}
.footer-top-wrapper ul li:before {
    content: '|';
}
.footer-top-wrapper ul:after {
    clear: both;
}
.container:after {
    clear: both;
}
.footer-bottom-wrapper {
    background-image: url(../uploads/carousel/footer-bottom-bg.png);
    background-repeat: repeat;
    background-color: #333;
    padding: 0px 0px;
    color: #fff;
    position: relative;
    text-align: center;
}

.footer-content {
    display: inline-block;
    padding: 15px 0;
}
.clearfix:before, .clearfix:after {
    display: table;
    line-height: 0;
    content: "";
}
.copyright-content {
  color: #fff;
  font-size: 76%;
  line-height: 150%;
  padding: 5px 0;
  text-align: center;
}


.copyright-content strong, th {
    font-weight: bold;
}

.slides, .slides > li, .flex-control-nav, .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}
.slides>li {
    position: relative;
}
.carousel-wrapper:after {
    position: absolute;
    content: '';
    top: 0px;
    left: 0px;
    height: 10px;
    width: 100%;
    background: url(../uploads/carousel/after-bg.png) repeat;
    z-index: 10;
}

body, html {
  margin: 0;
  padding: 0;
}
.footer-bottom-wrapper:after {
    position: absolute;
    content: '';
    top: 0px;
    left: 0px;
    height: 4px;
    width: 100%;
    background: url(../uploads/carousel/after-bottom-bg.png) repeat;
    z-index: 10;
}


/*Home Page Body Section */
.banner-content-wrapper h2 span {
    color: #a6690c;
    font-weight: 700;
    text-transform: capitalize;
    font-size: 100%;
}
.gray-bg {
  background: url(../uploads/minister/minister-bg.jpg);
  padding: 30px 0px !important;
} 
.body-wrapper {
  background-color: #f6f6f6;
  padding-top: 20px;
  padding-bottom: 20px;
}
 .banner-content-wrapper {
  background: #fff;
  padding: 20px;
  line-height: 1.7;
  font-size: 16px;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
p.banner-title-tag-line {
  color: #333131;
}
p.banner-title-tag-line:after {
  content: " ";
  border: 2px solid #a6690c;
  width: 50px;
  display: block;
  margin-top: 5px;
}
p.banner-content {
    color: #000;
    line-height: 30px;
    padding: 15px 0px 30px;
    font-size: 100%;
}
.banner-title-tag-line {
  margin-top: 10px;
}
.view-footer {
  text-align: right;
}
.view-footer a {
  border: 1px solid #a6690c;
  padding: 10px 20px;
  color: #a6690c;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
}
.view-footer a:hover {
  background: #a6690c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
 .banner-content-wrapper a {
    border: 1px solid #a6690c;
    padding: 10px 20px;
    color: #a6690c;
    text-transform: uppercase;
}
.minister-sub {
  cursor: pointer;
  padding: 4px;
  height: 100%;
  border-radius: 10px;
  text-align: center; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.minister-sub:hover {
  transform: translateY(-4px);
}
.minister-sub img {
  border: 1px solid #d8d8d8;
  background-image: url(../uploads/minister/profile-bg.jpg);
  background-size: cover;
  border-radius: 8px;
  /* max-width: 100%; */
  height: auto;
  width: 100%;
  max-height: 180px; /* Fixed max height */
  /* object-fit: cover; */
  display: block;
  margin: 0 auto;
}
.minister-box {
  padding: 0px;
}
.minister-box .minister-image {
    width: 100%;
    display: inline-block;
    vertical-align: top;
    margin-top: 0px;
    text-align: center;
    padding: 0px;
}

.minister .min-info {
    display: inline-block;
    padding-top: 10px;
    width: 100%;
    font-size: 98%;
    text-align: center;
}
.minister .minister-sub h4 {
    font-weight: 700;
    font-size: 92%;
    text-transform: uppercase;
    padding: 0px 5px;
}
.minister .min-info h4 {
    color: #000;
    font-weight: 700;
    font-size: 110%;
}
.minister .min-info h5 {
    color: #555;
    padding-bottom: 0;
    font-size: 100%;
    position: relative;
    padding-top: 5px;
}
.minister {
  padding: 10px 15px;
  min-height: 300px;
  background: #fff none repeat scroll 0 0;
  float: right;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* online seva section */
.online-services-section {
  background: #ffffff;
  padding: 40px 0;
}
.headings-wrapper h2 {
  font-size: 26px;
  color: #a6690c;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: left;
}
.banner-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.banner-box-middle {
  flex: 1 1 30%; /* adjusted for 3 in a row */
  background: #ccc;
  padding: 30px 20px;
  text-align: center;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  position: relative;
  overflow: hidden;
}
.banner-box-middle:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.banner-box-middle h2 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.banner-box-middle i {
  color: #000;
}
.banner-box-middle a {
  text-decoration: none;
  display: block;
}
/* Unique and vibrant 3-shade gradients for each service box */
.banner-box-middle:nth-child(1) {
  background: linear-gradient(135deg, #ff7e5f, #feb47b, #ffcc70);
}

.banner-box-middle:nth-child(2) {
  background: linear-gradient(135deg, #76b852, #8DC26F, #c5e384);
}

.banner-box-middle:nth-child(3) {
  background: linear-gradient(135deg, #8e44ad, #9b59b6, #d2b4de);
}

.banner-box-middle:nth-child(4) {
  background: linear-gradient(135deg, #2980b9, #3498db, #6dd5fa);
}

.banner-box-middle:nth-child(5) {
  background: linear-gradient(135deg, #16a085, #1abc9c, #a2ded0);
}

.banner-box-middle:nth-child(6) {
  background: linear-gradient(135deg, #e67e22, #f39c12, #f5c36c);
}
@media screen and (max-width: 992px) {
  .banner-box-middle {
    flex: 1 1 48%;
  }
}
@media screen and (max-width: 600px) {
  .banner-box-middle {
    flex: 1 1 100%;
  }
}

.breadcam-bg {
    background-color: #4e2e2e14;
    border-bottom: 1px solid #ddd;
}
.breadcam {
    padding: 8px 0;
    display: block; 
}
.inner-wrapper .container {
    margin: 0 auto;
    padding: 0px 15px;
    z-index: 0;
}
.breadcam li {
    list-style-type: none;
    display: inline-block;
    font-size: 16px;
    white-space: nowrap;
    color: #666666;
}
.breadcam li a {
    display: inline;
    padding-right: 13px;
    color: #000;
    text-decoration: none;
}
.breadcam ul.breadcrumb {
    margin: 0;
    padding: 0;
}
.breadcam li + li::before {
    content: " > ";
    padding: 0 5px;
    color: #999;
}
.breadcam li a:hover {
    text-decoration: underline;
}
.list-wrapper h2 {
  font-size: 150%;
  padding-top: 0px;
  padding-bottom: 0px;
  font-weight: 700;
  clear: both;
}
.list-wrapper h3 {
  font-size: 150%;
  padding-top: 0px;
  padding-bottom: 0px;
  clear: both;
}
.list-wrapper h5 {
  font-size: 100%;
}
.list-wrapper p {
  font-size: 95%;
}
.page-content img {
  max-width: 100%;
}
.font-resize-controls button {
  font-size: 13px;
  padding: 4px 8px;
  margin: 0 4px;
  cursor: pointer;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.font-resize-controls button:hover {
  background-color: #ddd;
}
.datetime-info {
  font-size: 14px;
  color: #fdf4f4;
  margin-right: 5px;
}
.datetime-info i {
  color: #fdf4f4;
}
/* Desktop & larger */
.logo-text {
  white-space: nowrap; /* Prevent line breaks inside */
}

.main-title {
  font-size: 35px;
  white-space: nowrap; /* Prevent breaking */
}

.sub-title {
  font-size: 18px;
  white-space: nowrap; /* Prevent breaking */
  display: block; /* Make it appear below main title */
  margin-top: 5px;
  color: #444;
}
/*Responsive CSS */
@media (max-width: 767px) {
  .container {
    flex-wrap: nowrap;
  }

  .logo-text {
    white-space: normal; /* allow wrap only if necessary */
  }

  .main-title {
    font-size: 20px !important;  /* smaller but still readable */
  }

  .sub-title {
    font-size: 14px !important;
    margin-top: 0;
  }

  /* Hide Swachh Bharat logo on mobile */
  .swachh-logo {
    display: none !important;
  }

  /* Adjust logo image size */
  .logo-img {
    max-height: 60px !important;
  }

  /* Ensure the logo and text are horizontally aligned */
  .header__logo {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }
   .slider-controls {
    bottom: 5px;
    right: 5px;
    padding: 0.3em;
    gap: 4px;
  }
  .slider-controls i {
    font-size: 10px;
    padding: 2px 5px;
  }
  .slider-btn {
    padding: 6px;
  }
   header .container {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
  }
  /* .header__logo {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  } */
  /* .logo-img {
    max-height: 50px;
    width: auto;
  } */
  /* .logo span {
    font-size: 15px !important;
  } */
  /* .swachh-logo img {
    max-height: 50px;
    width: auto;
  } */
  .top-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-header ul {
    flex-wrap: wrap;
    gap: 5px;
  }
  .font-resize-controls button {
    padding: 2px 6px;
    font-size: 12px;
  }
  .datetime-info {
    font-size: 12px;
    margin-top: 5px;
  }
  .top-header ul li{
    margin-right: 8px !important;
    font-size: 13px;
  }
  .top-header .fab {
    font-size: 14px;
    margin-right: 5px;
  }
  .language-switch {
    width: 100%;
    margin-top: 10px;
  }
   /* Breadcrumb styling */
  .breadcam-bg {
    padding: 10px 0;
    text-align: left;
  }
  .breadcam ul.breadcrumb {
    padding: 0 10px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
  }
  .breadcam li {
    display: inline;
    font-size: 13px;
  }
  .breadcam li + li::before {
    content: " > ";
    padding: 0 4px;
  }
  /* Heading and content spacing */
  .list-wrapper h2 {
    font-size: 20px;
    padding: 10px 0;
    line-height: 1.3;
  }
  .alert {
    margin: 10px;
    font-size: 14px;
  }
  .container.common-container {
    padding: 0 10px;
  }
  hr {
    margin: 10px 0;
  }
  .wrapper.list-wrapper {
    padding: 10px 0;
  }
  .wrapper.list-wrapper .container {
    padding: 0 10px !important;
  }
}

@media (max-width: 991px) {
  .main-menu .navbar-nav .nav-link.active::after, .main-menu .navbar-nav .nav-link:hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 3%;
    width: 14%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
}
}
/* Responsive table container */
.responsive-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
}
/* Ensure table is scrollable and does not break layout */
.responsive-table-wrapper table {
  min-width: 700px;
  width: 100%;
  border-collapse: collapse;
}
/* Improve readability in small screens */
@media (max-width: 767px) {
  .responsive-table-wrapper table th,
  .responsive-table-wrapper table td {
    font-size: 13px;
    white-space: nowrap;
  }
  .responsive-table-wrapper {
    margin-bottom: 20px;
  }
  .page-content {
    padding: 15px;
    font-size: 15px;
  }
}
.page-content {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Force any table or image to fit within mobile width */
.page-content table,
.page-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  overflow-x: auto;
}
.nowrap-text {
  white-space: nowrap;
}
/*Sub page right section */
.inner-right .panel-body {
  padding: 12px 15px;
}
.inner-right .panel {
  border: none;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}
.inner-right .panel-heading {
  background: linear-gradient(90deg, #f0ad4e, #ec971f);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 15px;
  border-bottom: 2px solid #e08800;
  margin-bottom: 8px;
}
.inner-right .btn-block {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  margin-bottom: 8px;
  line-height: 1.4;
  white-space: nowrap;
}
.inner-right .btn i {
  color: #fff !important;
  margin-right: 6px;
  font-size: 14px;
}
.inner-right .btn {
  text-align: center;
  font-weight: 500;
  border-radius: 4px;
}
@media (max-width: 767px) {
  .inner-right .btn {
    font-size: 14px;
  }
   .inner-right .button-group {
    padding: 0 5px;
  }
}
/* Scroller CSS */
#scroll {
    position: fixed;
    right: 10px;
    bottom: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background-color: #ec4933;
    text-indent: -9999px;
    display: none;
    border-radius: 60px;
    z-index: 222;
}
#scroll span {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -12px;
    height: 0;
    width: 0;
    border: 8px solid transparent;
    border-bottom-color: #ffffff;
}
.separator {
  color: #fff;
  margin: 0 8px;
}

