body {
  background: url(../images/vecteezy_abstract-modern-line-background-white-and-grey-geometric_15325118.jpg) no-repeat center center fixed;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

a {
  color: #db1f26;
}

a:hover {
  color: #db1f26;
}

/* start h2 */
h2 {
  text-align: center;
  font-size: 40px;
  padding-bottom: 40px;
}
h2 span {
  color: #db1f26;
  font-weight: bold;
}
/* end h2 */

/* start about team service portfolio contact */
#about,
#team,
#service,
#portfolio,
#contact {
  padding-top: 60px;
  padding-bottom: 40px;
}
/* end about team service portfolio contact */

/* start preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row nowrap;
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  background: none repeat scroll 0 0 #ffffff;
}
.sk-spinner-wave.sk-spinner {
  width: 50px;
  height: 30px;
  text-align: center;
  font-size: 10px;
}
.sk-spinner-wave div {
  background-color: #333;
  height: 100%;
  width: 6px;
  display: inline-block;
  -webkit-animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
  animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
}
.sk-spinner-wave .sk-rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}
.sk-spinner-wave .sk-rect3 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}
.sk-spinner-wave .sk-rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}
.sk-spinner-wave .sk-rect5 {
  -webkit-animation-delay: -0.4s;
  animation-delay: -0.4s;
}

@-webkit-keyframes sk-waveStretchDelay {
  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4);
    transform: scaleY(0.4);
  }

  20% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }
}

@keyframes sk-waveStretchDelay {
  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4);
    transform: scaleY(0.4);
  }

  20% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }
}
/* end preloader */

/* Header Section */
header {
  min-height: 20px;
  padding-top: 18px;
  padding-bottom: 10px;
  background-color: #3f3e3e;
}

header .fa {
  color: #db1f26;
}

header span {
  font-weight: bold;
  padding-right: 10px;
  padding-left: 4px;
}

header a {
  color: #999;
  font-weight: 600;
}

header .social-icon {
  text-align: right; /* Align social icons to the right by default */
}

header .social-icon li {
  display: inline-block;
  list-style: none;
}

header .social-icon li a {
  border: none;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.4s ease-in-out;
}

header .social-icon li a:hover {
  color: #db1f26;
}

@media only screen and (max-width: 767px) {
  header .social-icon {
    text-align: left; /* Align social icons to the left on smaller screens */
  }

  header .social-icon li {
    display: inline-block;
    margin: 0 5px; /* Add spacing between icons */
  }

  header .social-icon li:first-child {
    margin-left: 0; /* Remove left margin for the first icon */
  }

  header .social-icon li:last-child {
    margin-right: 0; /* Remove right margin for the last icon */
  }

  header .col-md-5 {
    text-align: left; /* Align the entire social icon section to the left */
  }
}
/* end header */

/* start nagivation */
.navbar-default {
  background: #fff;
  border: none;
  box-shadow: none;
  margin: 0 !important;
}
.navbar-default .navbar-brand {
  font-weight: 500;
  font-size: 30px;
  height: 70px;
  line-height: 40px;
  padding: 12px 0px 0px 12px;
}
.navbar-default .navbar-nav li a {
  font-weight: bold;
  font-size: 13px;
  height: 70px;
  line-height: 40px;
  padding: 12px 15px;
  color: #666;
}

.navbar-default .navbar-nav > li > a.current {
  color: #db1f26;
}
.templatemo-nav {
  border-radius: 0;
  width: 100%;
  z-index: 1000;
}
.sticky {
  position: fixed;
  left: 0;
  top: 0;
}

.custombtn {
  padding: 1em 2em;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  color: #db1f26;
  transition: all 1000ms;
  font-size: 13px;
  position: relative;
  overflow: hidden;
  outline: 2px solid #db1f26;
}

.custombtn:hover {
  color: #ffffff;
  transform: scale(1.1);
  outline: 2px solid #db1f26;
  box-shadow: 4px 5px 17px -4px #db1f26;
}

.custombtn::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: #c82333;
  transform: skewX(45deg);
  z-index: -1;
  transition: width 1000ms;
}

.custombtn:hover::before {
  width: 250%;
}

/* end navigation */

/* start home */
#home {
  background: url("../images/lincoln\ convocation\ 2025.png") no-repeat right
    center/cover;
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: 650px;
}

#home .container .row {
  justify-content: flex-start; /* Align row content to the left */
}

#home h1 {
  font-weight: 700;
  font-size: 45px;
  color: #fff;
  padding-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
#home h1 span {
  color: #ffea00;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
#home .btn {
  background: #db1f26;
  border-radius: 2px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  width: 180px;
  height: 60px;
  padding-top: 18px;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
#home .btn:hover {
  background: #c82333;
  border-color: transparent;
}
.element {
  height: 60px;
  font-size: 25px;
  font-weight: 400;
  color: #fff;
}
/* end home */

/* start video section */
#video {
  padding-top: 60px;
  padding-bottom: 60px;
}

#video h2 {
  font-size: 32px;
  font-weight: 700;
  color: #3f3e3e;
  margin-bottom: 5px;
}

#video p {
  font-size: 16px;
  font-weight: 400;
  color: #3f3e3e;
  line-height: 1.8;
  margin-bottom: 30px;
  padding-left: 13px;
  text-align: justify;
}

#video .btn {
  background: #db1f26; /* Red color to match the theme */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 16px 24px;
  border-radius: 2px;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

#video .btn:hover {
  background: #c82333; /* Darker red on hover */
}

.embed-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.embed-responsive-16by9 {
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
/* end video section */

/* Path to Become a Pharmacist Section */
#about {
  padding-top: 60px;
  padding-bottom: 60px;
  background: url(../images/White\ background.jpeg) no-repeat center center;
  background-size: cover;
}

#about h2 {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #3f3e3e; /* Black text */
}

#about h2 span {
  color: #db1f26; /* Red color */
  font-weight: bold;
}

/* Timeline Styling */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #db1f26; /* Red color */
  left: 50%;
  margin-left: -2px;
}

.timeline-step {
  padding: 20px;
  position: relative;
  width: 50%;
}

.timeline-step:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-step:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: #db1f26; /* Red color */
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  color: #fff; /* White icon color */
  font-size: 20px;
}

.timeline-step:nth-child(odd) .timeline-icon {
  right: -25px;
}

.timeline-step:nth-child(even) .timeline-icon {
  left: -25px;
}

.timeline-content {
  padding: 20px;
  background: #fff; /* White background */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #3f3e3e; /* Black text */
}

.timeline-content p {
  font-size: 16px;
  font-weight: 400;
  color: #666; /* Gray text */
  line-height: 1.5;
}

.timeline-content h4 {
  color: #db1f26; /* Red color for headings */
}

/* Milestones Styling */
.milestone {
  text-align: center; /* Center align text */
  padding: 20px;
  margin-bottom: 20px; /* Add spacing between milestones */
}

.milestone-icon {
  font-size: 40px;
  color: #db1f26; /* Red color */
  margin-bottom: 20px;
}

.milestone h4 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #3f3e3e; /* Black text */
}

.milestone p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8; /* Increased line height for better readability */
  color: #3f3e3e;
  margin-bottom: 20px; /* Added margin for spacing */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Added text shadow for better readability */
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center align milestones horizontally */
}
/* end of Path to Become a Pharmacist Section  */

/* Dean's Message Styling */
.dean-message {
  background: url(../images/vecteezy_old-paper-with-burnt-edges_12721867.jpg)
    center center / cover no-repeat;
  background-size: 1320px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
  margin-bottom: 40px; /* Add spacing below the Dean's message */
}

.dean-message h3 {
  font-size: 28px;
  font-weight: bold;
  color: #3f3e3e; /* Black text */
  margin-bottom: 20px;
}

.dean-message p {
  font-size: 16px;
  font-weight: 500;
  color: black; /* Gray text */
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Dean's Info Styling */
.dean-info {
  margin-top: 20px; /* Add spacing above the Dean's info */
  padding-top: 20px; /* Add padding above the Dean's info */
  border-top: 2px solid #db1f26; /* Red border above the Dean's info */
}

.dean-info h4 {
  font-size: 22px;
  font-weight: bold;
  color: #3f3e3e; /* Black text */
  margin-bottom: 10px;
}

.dean-info p {
  font-size: 16px;
  color: #666; /* Gray text */
  margin-bottom: 5px;
}

/* Faculty Members Styling */
.team-wrapper {
  background: #fff; /* White background */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
  margin-bottom: 20px; /* Add spacing between cards */
  overflow: hidden; /* Ensure content stays within the card */
  height: 100%; /* Ensure all cards have the same height */
  display: flex;
  flex-direction: column;
}

.team-img {
  display: grid;
  place-items: center; /* Center horizontally and vertically */
  height: 220px; /* Fixed height for the container */
  overflow: hidden; /* Hide any overflow */
}

.team-img img {
  width: 60%;
  height: 100%;
  object-fit: cover; /* Ensure images cover the container without distortion */
}

.team-des {
  padding: 20px;
  flex-grow: 1; /* Ensure description takes up remaining space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Align content evenly */
}

.team-des h4 {
  font-size: 18px;
  font-weight: bold;
  color: #3f3e3e; /* Black text */
  margin-bottom: 0px;
}

.team-des span {
  color: #db1f26; /* Red color */
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  margin-top: 0px;
}

.team-wrapper:hover {
  cursor: pointer;
  opacity: 0.4;
  bottom: 4px;
}
/* end team */

/* start service */
#service {
  background: url(../images/White\ background.jpeg) no-repeat center center;
}

#programCarousel {
  margin: 0 auto;
  width: 2000px;
  padding: 20px;
}

.carousel-inner {
  background: url(../images/Background\ Bus.jpg) center center / cover no-repeat;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  padding-bottom: 50px;
}

.program-card {
  text-align: center;
  max-height: 400px;
  padding: 20px;
}

.program-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.program-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.program-card ul li {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
}

.cta-buttons .btn {
  background: #db1f26;
  color: #fff;
  margin: 5px;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.4s ease-in-out;
}

.cta-buttons .btn:hover {
  background: #c82333;
}

.fa-chevron-left,
.fa-chevron-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
/* end service */

/* Portfolio Section */
#portfolio {
  padding-bottom: 80px;
}

#portfolio h2 {
  text-align: center;
  font-size: 40px;
  padding-bottom: 40px;
}

#portfolio .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center align portfolio items */
  margin: 0 -15px; /* Remove default row margin */
}

#portfolio .col-md-3 {
  padding: 0 15px; /* Add spacing between columns */
  margin-bottom: 30px; /* Add spacing below each portfolio item */
  flex: 0 0 25%; /* Ensure 4 columns on larger screens */
  max-width: 25%; /* Ensure 4 columns on larger screens */
  display: flex; /* Ensure all items have the same height */
}

#portfolio .portfolio-thumb {
  background: #fff; /* White background for consistency */
  border-radius: 8px; /* Rounded corners */
  overflow: hidden; /* Ensure content stays within the container */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure all items have the same height */
  width: 100%; /* Ensure all items have the same width */
}

#portfolio img {
  width: 100%; /* Make images responsive */
  height: 200px; /* Fixed height for images */
  object-fit: cover; /* Ensure images cover the container without distortion */
}

#portfolio .portfolio-overlay {
  background: rgba(219, 31, 38, 0.4); /* Semi-transparent red overlay */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease-in-out;
}

#portfolio .portfolio-thumb:hover .portfolio-overlay {
  opacity: 1;
}

#portfolio .portfolio-overlay .btn {
  background: none;
  border: 1px solid #fff;
  border-radius: 2px;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  transition: all 0.4s ease-in-out;
}

#portfolio .portfolio-overlay .btn:hover {
  background: #fff;
  color: #db1f26;
}
/* end portfolio */

/* start contact */
#contact {
  background: url(../images/LUC\ Building.jpg) center center / cover no-repeat;
}

#contact p {
  text-align: justify;
  font-weight: 370;
}
#contact address .address-title {
  font-weight: bold;
  font-size: 20px;
  padding-bottom: 10px;
}
#contact address span {
  display: block;
  padding-bottom: 30px;
}
#contact address .fa {
  border: 1.5px solid #fff;
  background-color: rgb(219, 31, 38);
  border-radius: 2px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin-right: 10px;
  margin-bottom: 10px;
}
/* end contact */

/* start copyright */
#copyright {
  padding: 20px;
  background-color: #3f3e3e;
}
#copyright p {
  font-weight: 400;
  font-size: 13px;
}
/* end copyright */

/* start social icon */
.social-icon {
  position: relative;
  padding: 0;
  margin: 0;
}
.social-icon h4 {
  display: inline-block;
  padding-right: 20px;
}
.social-icon li {
  display: inline-block;
  list-style: none;
}
.social-icon li a {
  border: 1px solid #fff;
  border-radius: 2px;
  color: #fff;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  margin-right: 10px;
  margin-bottom: 10px;
}
.social-icon li a:hover {
  background: #db1f26;
  border-color: transparent;
}
/* end social icon */

/* Large Devices (992px - 1199px) */
@media only screen and (max-width: 1199px) and (min-width: 992px) {
  #portfolio .portfolio-thumb .portfolio-overlay {
    padding: 0 8px; /* Adjust overlay padding */
  }
}

/* Medium Devices (768px - 1024px) */
@media only screen and (max-width: 1024px) and (min-width: 768px) {
  /* Navigation Bar */
  .navbar-default .navbar-nav li a {
    font-size: 12px; /* Smaller font size */
    padding: 10px 8px; /* Adjust padding */
  }

  .navbar-default .navbar-brand {
    font-size: 24px; /* Smaller logo text */
    padding: 15px 0 0 10px; /* Adjust padding */
  }

  .navbar-collapse {
    max-height: 300px; /* Limit height of collapsed menu */
    overflow-y: auto; /* Add scroll if too many items */
  }

  #video iframe {
    margin-top: 20px; 
  }


  /* Portfolio Section */
  #portfolio .col-md-3 {
    flex: 0 0 100%; /* Two columns on tablets */
    max-width: 100%;
  }

  #portfolio img {
    height: 500px; /* Slightly smaller images */
  }

  #portfolio .portfolio-overlay {
    padding: 10px; /* Reduce padding */
  }

  /* Contact Section */
  #contact .col-md-6 {
    width: 100%; /* Full width for contact columns */
    margin-bottom: 20px; /* Add spacing between columns */
  }

  #contact h4 {
    text-align: center; /* Center align the heading */
    margin-bottom: 15px; /* Add spacing below the heading */
  }

  #contact address span {
    padding-bottom: 15px; /* Reduce spacing */
  }

  #contact .social-icon {
    text-align: center; /* Center social icons */
  }

  #contact .social-icon li {
    display: inline-block; /* Ensure icons are inline */
    margin: 0 5px; /* Add spacing between icons */
  }

  /* Team Section */
  .team-img img {
    height: 250px; /* Increase height for tablets */
  }
}

/* Small Devices (767px and below) */
@media only screen and (max-width: 767px) {
  /* Navigation Bar */
  .navbar-default .navbar-nav li a {
    font-size: 14px; /* Slightly larger font for mobile */
    padding: 10px 15px; /* Adjust padding */
  }

  .navbar-default .navbar-brand {
    font-size: 20px; /* Smaller logo text */
    padding: 10px 0 0 5px; /* Adjust padding */
  }

  .navbar-toggle {
    margin-top: 18px; /* Adjust toggle button position */
  }

  .navbar-collapse {
    background: #fff; /* Add background to collapsed menu */
    border: 1px solid #ddd; /* Add border for better visibility */
  }

  /* Home Section */
  #home {
    min-height: 300px; /* Reduce height */
    padding-top: 80px;
    padding-bottom: 60px;
  }

  #home h1 {
    font-size: 28px; /* Smaller heading */
  }

  .element {
    font-size: 18px; /* Smaller text */
  }

  /* Portfolio Section */
  #portfolio .col-md-3 {
    flex: 0 0 100%; /* Single column on mobile */
    max-width: 100%;
  }

  #portfolio img {
    height: 200px; /* Smaller images */
  }

  #portfolio h2 {
    font-size: 32px; /* Smaller heading */
    padding-bottom: 20px;
  }

  /* Contact Section */
  #contact .col-md-6 {
    width: 100%; /* Full width for contact columns */
    margin-bottom: 20px; /* Add spacing between columns */
  }

  #contact address span {
    padding-bottom: 10px; /* Reduce spacing */
  }

  #contact .social-icon {
    text-align: center; /* Center social icons */
  }

  #contact .social-icon li {
    display: inline-block; /* Ensure icons are inline */
    margin: 0 5px; /* Add spacing between icons */
  }

  /* Team Section */
  .team-img img {
    height: 275px; 
  }
}

/* Extra Small Devices (480px and below) */
@media only screen and (max-width: 480px) {
  body,
  .container,
  div,
  section {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .paddingleft {
    padding-left: 10px;
  }

  .pad30 {
    padding-left: 30px;
  }

  .pad45 {
    padding-left: 45px;
    text-align: center;
  }

  .marginleft {
    margin-left: 30px;
  }

  .carousel-inner {
    height: 550px;
  }

  /* Navigation Bar */
  .navbar-default .navbar-nav li a {
    font-size: 12px; /* Smaller font size */
    padding: 8px 10px 0px 20px; /* Adjust padding */

    /* Home Section */
    #home {
      min-height: 200px; /* Reduce height */
      padding-top: 60px;
      padding-bottom: 40px;
    }

    #home h1 {
      font-size: 24px; /* Smaller heading */
    }

    .element {
      font-size: 16px; /* Smaller text */
    }


    /* Portfolio Section */
    #portfolio img {
      height: 200px; 
      width: 100%; /* Full width for images */
    }

    #portfolio h2 {
      font-size: 28px; /* Smaller heading */
      padding-bottom: 15px;
    }

    /* Contact Section */
    #contact address span {
      padding-bottom: 25px; /* Reduce spacing */
    }

    #contact h4 {
      text-align: center; /* Center align the heading */
      margin-bottom: 15px; /* Add spacing below the heading */
    }

    #contact .social-icon {
      text-align: center; /* Center align the social icons */
      margin-top: 50px;
    }

    #contact .social-icon li {
      display: inline-block; /* Ensure icons are inline */
      margin: 0 5px; /* Add spacing between icons */
    }

    #contact .social-icon li a {
      width: 30px; /* Smaller social icons */
      height: 30px;
      line-height: 30px;
    }
  }
}
