

:root{
  --light-bg: #ddeaf2;
  --dark-bg: #114e72;
  --main-font: "Inter", sans-serif;
  --heading-font: "Roboto Condensed", sans-serif;
}



*{
  font-family: var(--main-font);
}

h1,h2,h3,h4,h5{
  font-family: var(--heading-font);
}



body {
    background-color: #798b6f;
    background-image: url(../content/images/main-bg.jpg);
    background-size: cover;
    background-blend-mode: multiply;
    margin: 0;
    padding: 0;
}

.main{
  background-color: #fff;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  box-shadow: 0 0 20px #000;
}

header {
    background-color: var(--dark-bg);
    margin: 0;
    width: 100%;
    max-width: unset!important;
}



.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo>img {
    max-width: 80px;
    margin: 10px;
}

nav.theme-bg-dark {
    background-color: #fff;
    margin: 0 auto;
}



.logo h1 {
    font-weight: bold;
    color: #fff;
}

div#navbarNav {
    justify-content: center;
}

.navbar-nav {
    justify-content: space-around;
}

.navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0;
    color: var(--dark-bg) !important;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 20px;
}



/* Custom CSS for submenu and sub-submenu */

    .dropdown-submenu {
      position: relative;
    }



    .dropdown-submenu .dropdown-menu {
      top: 0;
      left: 100%;
      margin-top: -1px;
    }



    .dropdown-submenu:hover > .dropdown-menu {
      display: block;
    }

    .dropdown-submenu-sub .dropdown-menu {
      top: 0;
      left: 100%;
      margin-top: -1px;
    }

    .dropdown-submenu-sub:hover > .dropdown-menu {
      display: block;
    }

     /* Custom styles for home slider */

    .carousel-item {
      height: 450px; /* Adjust the height as per your design */
      background-size: cover;
      background-position: center;
    }


    .carousel-caption {
        right: 0;
        bottom: 0;
        left: 5%;
        text-align: left;
    }

    .home-slider {
        width: 94%;
        margin: 20px auto;
        box-shadow: 0 0 16px #5d6062;
        border: 5px solid #fff;
        max-width: 1314px;
    }


    .home-slider .carousel-caption h2 {
        color: #fff;
        font-size:4em;
        text-shadow: 0 0 8px black;
        text-transform: uppercase;
        font-weight: bolder;
        border-bottom: 1px solid #fff;
    }

    
    .page-content {
      position: relative;
      margin-top: 40px;
    }
    .page-content h1.page-heading {
        position: absolute;
        top: -100px;
        background-color: #fff;
        padding: 8px 30px;
        color: var(--dark-bg);
        border-radius: 12px 12px 0 0;
        box-shadow: 0px -9px 5px 0px #3333338c;
    }

    .hospital {
        background-color: var(--dark-bg);
        padding: 50px;
        margin: 50px auto;
        background-image: url(../content/images/banners/banner-seva.jpg);
        background-position: left;
        background-size: cover;
        background-blend-mode: exclusion;
    }



    .hospital .doctors>h3, .hospital .doctors>p {
        color: #333;
    }

    .hospital .doctors>p {
        text-align: left;
        width: 85%;
    }

     .hospital .doctors {
        max-width: 60%;
        background-repeat: no-repeat;
        background-color: #fff;
        padding: 20px;
        border-radius: 12px;
        overflow: hidden;
        min-height: 300px;
        box-shadow: 0 0 10px #000000a1;
    }

    /* Custom styles for block slider */

    .course-card {
      background-color: #f8f9fa;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .course-card img {
      max-height: 200px;
      object-fit: cover;
      width: 100%;
    }

    .course-card .card-body {
      padding: 20px;
    }

    .course-card h5 {
      margin-bottom: 0.5rem;
      color: #212529;
    }

    .course-card p {
      font-size: 0.875rem;
      color: #6c757d;
    }

    .card-footer a {
      text-decoration: none;
      color: #114e72;
      font-size: 14px;
      font-weight: bold;
      display: flex;
      align-items: center;
    }
    .card-footer a>i {
      margin-right: 4px;
    }



    /* Custom CSS for message ticker */

    .ticker {
        overflow: hidden;
        white-space: nowrap;
        border-top: 1px solid #cfc2ab;
        padding: 5px;
        border-bottom: 1px solid #cfc2ab;
    }



    .ticker-inner {
      display: inline-block;
      padding-left: 100%; /* Start offscreen */
      animation: ticker 35s linear infinite;
    }



    @keyframes ticker {

      0% {

        transform: translateX(0%);

      }

      100% {

        transform: translateX(-100%);

      }

    }



    /* Custom styles for news blocks */

    .news-item {
      margin-bottom: 20px;
      background-color: #f8f9fa;
      border: 1px solid #e9ecef;
      border-radius: 0.25rem;
      padding: 15px;
    }



    .news-item .news-date {
      font-size: 0.875rem;
      font-weight: bold;
      color: #6c757d;
    }



    .news-content {
      margin-top: 10px;
    }
    .news-details {
      border: 1px solid #aaa;
      padding: 20px;
      border-radius: 12px;
      margin-bottom: 30px;
    }
    .news-details .news-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px dashed;
      margin-bottom: 20px;
    }
    .news-details .news-head h3 {
      color: #114e72;
    }
    .news-details .news-head dt {
      font-size: 14px;
    }
    .news-details .news-hint {
      display: flex;
      align-items: flex-start;
    }
    .news-details .news-hint .cover {
      min-width: 40%;
    }
    .news-details .news-hint .cover>img {
      margin: 0 20px;
      max-width: 90%;
      border-radius: 12px;
      overflow: hidden;
    }

    a.btn-blue {
      background-color: #114e72;
      padding: 6px 24px;
      border-radius: 50px;
      margin: 5px;
      color: #fff;
      text-decoration: none;
      display: inline-flex;
      justify-content: space-between;
      align-items: center;
    }
    a.btn-blue:hover {
      background-color: #0a58ca;
    }
    a.btn-blue>i {
      margin-right: 4px;
    }


    .block-slider {
      overflow: hidden;
      position: relative;
      margin-top: 20px;
    }

    .block-slider .slider-wrapper {
      display: flex;
      transition: transform 0.5s ease;
    }

    .block-slide {
      flex: 0 0 auto;
      width: 100%;
      max-width: 300px; /* Adjust slide width as needed */
      padding: 10px;
      text-align: center;
      border: 1px solid #ccc;
      border-radius: 8px;
      margin-right: 10px;
      background-color: #f8f9fa;
    }


    /* Gallery Image Style */
    .gallery-img {
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border-radius: 10px;
      border: 1px solid #ccc;
    }

    .gallery-img:hover {
      transform: scale(1.05);
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    /* Modal Overlay Animation */
    .modal.fade .modal-dialog {
      transform: scale(0.9);
      opacity: 0;
      transition: all 0.3s ease-out;
    }

    .modal.show .modal-dialog {
      transform: scale(1.2);
      opacity: 1;
    }

    .modal-content {
      background: rgba(0, 0, 0, 0.85);
      border: none;
      text-align: center;
      border-radius: 10px;
    }

    .lightbox-img {
      width: 100%;
      border-radius: 10px;
      transition: opacity 0.4s ease;
    }

    .caption {
      color: #f8f9fa;
      margin-top: 12px;
      font-size: 1rem;
      text-align: center!important;
    }

    /* Navigation Controls */
    .lightbox-controls {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      padding: 0 20px;
    }

    .lightbox-btn {
      background-color: rgba(255, 255, 255, 0.25);
      color: #fff;
      border: none;
      font-size: 2rem;
      padding: 5px 12px;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .lightbox-btn:hover {
      background-color: rgba(255, 255, 255, 0.5);
    }

    /* Fade-in Animation for Image */
    .fade-in {
      animation: fadeIn 0.5s ease forwards;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.97); }
      to { opacity: 1; transform: scale(1); }
    }



    /* Media Query for smaller screens */

    @media (max-width: 768px) {

      .block-slide {
        max-width: 100%; /* Full width on smaller screens */
      }

    }


    ul.sep-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        align-content: flex-start;
    }
    ul.sep-list li{
      padding: 4px 0 8px;
      border-bottom: 1px dashed #ddd;
    }

  

 .news h2 {
    font-weight: 600;
    color: #fff;
    text-align: center;
    font-size: 40px;
    margin-bottom: 15px;
}

  .news {
      padding:20px 20px 50px 20px;
  }

  .news h2 {
      color: var(--dark-bg);
  }

  .news .card-footer {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
  }

  .news .card-footer i.bi-arrow-right-circle-fill {

    color: var(--dark-bg);

    font-size: 24px;

  }



.footer {

      background-color: var(--dark-bg);

      color: #fff;

      padding: 40px 0;

    }

    .footer a {

      color: var(--light-bg);

      text-decoration: none;

    }

    .footer a:hover {

      color: #fff;

    }

    .social-icons a {
      color: var(--light-bg);
      font-size: 24px;
      margin-right: 15px;
      text-decoration: none;
    }

    .social-icons a:hover {
      color: #fff;
    }

    .credit-bar {
        display: inline-flex;
        justify-content: space-between;
        border-top: 1px solid var(--light-bg);
        padding-top: 20px;
    }


button.btn-animated, a.btn-animated {
  background: var(--dark-bg);
  border: none;
  padding: 6px 15px;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  width: auto;
  cursor: pointer;
  transform: skew(-21deg);
  text-decoration: none;
  color: #fff;
}

.btn-animated span {
  display: inline-block;
  transform: skew(21deg);
}



.btn-animated::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  left: 0;
  background: #a3d1ed;
  opacity: 0;
  z-index: -1;
  transition: all 0.5s;
}

.btn-animated:hover {
  color: #000;
}

.btn-animated:hover::before {
  left: 0;
  right: 0;
  opacity: 1;
}

.Departments p {
    margin: 8px 0;
    padding: 2px 0;
    border-bottom: 1px dashed #bbb;
}



.donate {
    background-image: url(../content/images/donate.png);
    background-repeat: no-repeat;
    background-color: var(--light-bg);
    padding: 30px 30px 30px 45%;
    margin-bottom: 60px;
    min-height: 350px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #0d1e68;
}

.donate-offline {
    background-image: url(../content/images/donate-offline.jpg);
    background-repeat: no-repeat;
    background-color: #fff;
    padding: 30% 20px 20px;
    margin-bottom: 60px;
    min-height: 350px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #0d1e68;
}

.donations .donate {
    padding: 30% 20px 20px;
    position: relative;
}

.donations .donate a.pay {
    text-decoration: none;
    background-color: #0d1e68;
    color: #fff;
    padding: 6px 30px;
    border-radius: 75px;
    font-size: 20px;
    text-transform: uppercase;
    position: absolute;
    right: 20px;
    margin-top: -20px;
}
.donations .donate a.pay:hover {
  background-color: #1e369f;
}

img.page-banner {
    width: 100%;
}

.page-content p {
    text-align: justify;
}
.page-content .picbox {
    border: 1px solid #ddd;
    text-align: center;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.page-content .picbox.float-left {
    float: left;
    margin: 0 25px 25px 0;
}
.page-content .picbox.float-right {
    float: right;
    margin: 0 0 25px 25px;
}
.page-content .picbox img {width: max;}

.photos{
  margin: 30px auto;
}
.photos img{
  width: 98%;
  margin: 8px auto;
}
.photos span {
    font-size: 13px;
    line-height: 18px;
    display: block;
    margin: 8px auto 3px auto;
    font-weight: 600;
    color: var(--dark-bg);
}


/* ---------- for Mobile view -------------*/

@media only screen and (max-width: 676px) {

  header {
      margin-top: 8vh;
  }
  .page-content .picbox.float-left {
      float: none;
      margin: 20px auto;
  }

  .navbar {
    position: fixed;
    width: 100%;
    top: -1px;
    z-index: 999;
    box-shadow: 0 0 12px #555;
  }

  .navbar>.container{
    justify-content: flex-end;
  }
  .navbar-toggler {
    background-color: #114e72;
    border: none;
  }
  .mv>div{
    margin: 12px auto;
  }
  .hospital {
    padding: 30px;
    margin: 30px auto;
  }
  .hospital .doctors {
    max-width: 100%; 
    padding: 12px;
    min-height: unset;
    margin: 12px auto;
  }
  .donate {
    padding: 60% 20px 20px;
    min-height: unset;
    background-size: 130%;
    width: 94%;
  }
  .picbox {
    float: none !important;
    margin: 10px auto !important;
    display: block;
    width: fit-content;
  }
  .picbox img {
    max-width: 100%!important;
  }



  .credit-bar {
    flex-direction: column;
  }

  .news-details .news-head, .news-details .news-hint {
    align-items: flex-start;
    flex-direction: column;
  }
  .news-details .news-hint .cover>img {
    margin: 20px auto;
    max-width: 100%;
  }
  .modal.show .modal-dialog {
    transform: scale(1);
  }
  .modal-backdrop {
    width: 100%;
    height: 100%;
  }

}