/* Base Styles */
:root {
  --primary-color: #2c5fa8; /* Nursing blue */
  --secondary-color: #d32f2f; /* Accent red */
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #6c757d;
  --white-color:#ffffff;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Header Styles */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
  background: var(--dark-color);
  color: white;
  padding: 8px 0;
  font-size: 14px;
}
/* Top Bar Alignment Fix */
.top-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-bar .contact-info li {
    display: flex;
    align-items: center;
    gap: 5px;
}
.footer-link ul
{
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}
.top-bar .social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}
.navbar-brand img {
  height: 50px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.3rem 0.7rem;
}
.navbar {
    padding: 15px 0;
}

.navbar-nav {
    align-items: center;
}

.navbar-brand {
    line-height: 1.2;
}
.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(-5deg);
}

.nav-link {
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover:after {
    transform: scaleX(1);
}
.nav-link.active,
.dropdown-item.active {
    color: var(--white-color);
    font-weight: 600;
    position: relative;
}

.nav-link.active:after {
    transform: scaleX(1);
}
.dropdown-menu {
    min-width: 220px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    visibility: hidden;
    pointer-events: none;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.nav-link,
.dropdown-item {
    transition: all 0.2s ease;
    color: #333;
}

.nav-link:hover,
.dropdown-item:hover,
.nav-link:focus,
.dropdown-item:focus {
    color: var(--primary-color);
    background-color: transparent;
    text-decoration: none;
}

.dropdown-item {
    transition: all 0.2s ease;
}
.nav-link.active .dropdown-indicator,
.nav-link:hover .dropdown-indicator {
    color: var(--primary-color);
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 15px;
}
/* Dropdown Indicator Animation */
.dropdown-indicator {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.show .dropdown-indicator,
.dropdown-toggle:hover .dropdown-indicator {
    transform: rotate(180deg);
}
/* Banner Slider */
.banner-slider {
  position: relative;
}

.banner-slider .carousel-item {
  height: 650px;
  background-size: cover;
  background-position: center;
}

/* Section Styling */
.section-padding {
  padding: 80px 0;
}
.section-title-center {
 
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 15px;
  color: var(--dark-color);
  display: inline-block; /* Important for centering underline properly */
}

.section-title-center:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
}



.section-title {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 15px;
  color: var(--dark-color);
  display: inline-block; /* Needed for positioning underline relative to the text only */
  text-align: left; /* Prevent inner text alignment from affecting underline */
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

.bg-light {
  background-color: var(--light-color) !important;
}

/* Program Cards */
.program-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  height: 100%;
  transition: transform 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
}

.program-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Notice Board */
.notice-item {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.notice-date {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 10px;
  min-width: 70px;
  border-radius: 5px;
  margin-right: 20px;
}

.notice-date .day {
  font-size: 24px;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.notice-date .month {
  font-size: 14px;
  text-transform: uppercase;
}

/* Testimonials */
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin: 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 95, 168, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
}

.footer-top {
  padding: 60px 0;
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
}

.footer-widget {
  margin-bottom: 30px;
}

.widget-title {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: rgba(255,255,255,0.7);
}

.footer-menu a:hover {
  color: white;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: white;
}

.footer-social a:hover {
  background: var(--primary-color);
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 20px 0;
  font-size: 14px;
}

/* Buttons */
.btn {
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: #1d4a8a;
  border-color: #1d4a8a;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .banner-slider .carousel-item {
    height: 400px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 40px 0;
  }
  
  .banner-slider .carousel-item {
    height: 300px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Homepage Banner */
.homepage-banner {
    margin-bottom: 40px;
}

.homepage-banner .carousel-item {
    height: 650px;
    background-size: cover;
    background-position: center;
}

.homepage-banner .carousel-caption {
    background: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 5px;
    bottom: 100px;
}

/* Page-specific Banner */
.page-banner {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    margin-bottom: 40px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-banner .lead {
    font-size: 1.25rem;
    max-width: 800px;
}