/* ===== JNH COLOR OVERRIDES ===== */
/* Replace template primary #15B9D9 with JNH Green #00409F */
:root {
    --jnh-primary: #00409F;
    --jnh-primary-dark: #1f145f;
    --jnh-primary-light: #e8f5ee;
    --jnh-secondary: #d4a017;
    --jnh-dark: #00409F;
    --jnh-red: #c0392b;
  }
  
  /* Override Bootstrap primary color */
  .btn-primary, .bg-primary { background-color: #00409F !important; border-color: #00409F !important; }
  .btn-primary:hover { background-color: #1f145f !important; border-color: #1f145f !important; }
  .text-primary { color: #00409F !important; }
  .border-primary { border-color: #00409F !important; }
  .nav-pills .nav-link.active { background-color: #00409F; }
  a { color: #00409F; }
  a:hover { color: #1f145f; }
  
  /* Spinner color */
  .spinner-border.text-primary { color: #00409F !important; }
  
  /* Sub-title line color */
  .sub-style::before, .sub-style::after { background: #00409F; }
  
  /* Service item hover */
  .service-item:hover { border-color: #00409F; }
  
  /* Hero carousel overlay */
  .header-carousel-item { position: relative; }
  .header-carousel-item::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(60, 26, 122, 0.6) 0%, rgba(0,0,0,0.35) 100%);
  }
  .carousel-caption { position: absolute; z-index: 2; }
  .carousel-caption-content { position: relative; z-index: 2; }
  
  /* Navbar active link */
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active { color: #00409F !important; }
  
  /* Page Header Banner */
  .page-header {
      background: linear-gradient(135deg, #00409F 0%, #322b5f 100%);
      padding: 10px 0 10px;
      margin-top: 0;
  }
  .page-header h1 { color: #fff; font-weight: 700; }
  .page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255,255,255,0.8); }
  .page-header .breadcrumb-item.active { color: #fff; }
  .page-header .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.6); }
  
  /* Stats bar */
  .stats-bar {
      background: #00409F;
      padding: 25px 0;
  }
  .stats-bar .stat-item { text-align: center; color: #fff; }
  .stats-bar .stat-number { font-size: 2.5rem; font-weight: 700; display: block; }
  .stats-bar .stat-label { font-size: 0.9rem; opacity: 0.9; }
  
  /* Quick links bar below hero */
  .quick-links-bar {
      background: #fff;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      position: relative;
      z-index: 10;
      margin-top: -1px;
  }
  .quick-link-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 15px;
      text-decoration: none;
      color: #333;
      border-right: 1px solid #f0f0f0;
      transition: all 0.3s;
      cursor: pointer;
  }
  .quick-link-item:hover { background: #00409F; color: #fff; text-decoration: none; }
  .quick-link-item:hover i { color: #fff; }
  .quick-link-item i { font-size: 1.8rem; color: #00409F; margin-bottom: 8px; }
  .quick-link-item span { font-size: 0.8rem; font-weight: 600; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; }
  
  /* Department cards */
  .dept-card {
      border: 1px solid #585ada;
      border-radius: 12px;
      padding: 25px 20px;
      text-align: center;
      transition: all 0.3s;
      background: rgb(224, 232, 236);
      cursor: pointer;
      
  }
  .dept-card:hover { background: #00409F; color: #fff; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(26,122,74,0.2);  }
  .dept-card:hover p { color: rgba(255,255,255,0.85) !important; }
  .dept-card img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 12px; }
  .dept-card:hover img { filter: brightness(0) invert(1); }
  .dept-card h6 { font-weight: 700; font-size: 0.9rem; }
  
  /* Doctor cards */
  .doctor-card .doctor-img { 
      width: 80%; 
      height: 300px; 
      object-fit: stretch; 
      border-radius: 12px 12px 0 0; 
  }
  .doctor-card { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: all 0.3s; }
  .doctor-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(26,122,74,0.15); }
  .doctor-card .badge { background: #00409F; }
  
  /* News cards */
  .news-card { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
  .news-card img { height: 200px; object-fit: cover; width: 100%; }
  .news-date { color: #00409F; font-size: 0.85rem; font-weight: 600; }
  
  /* Donation section */
  .donate-section { background: linear-gradient(135deg, #00409F, #1f145f); }
  .donate-section * { color: #fff; }
  
  /* Zakat calculator */
  .zakat-result { background: #e8f5ee; border-left: 4px solid #00409F; border-radius: 8px; padding: 20px; }
  
  /* AI Health chatbot */
  .ai-chat-container { border: 1px solid #e0e0e0; border-radius: 16px; overflow: hidden; }
  .ai-chat-header { background: linear-gradient(135deg, #00409F, #1f145f); color: #fff; padding: 20px; }
  .ai-message { background: #e8f5ee; border-radius: 0 12px 12px 12px; padding: 12px 16px; margin-bottom: 12px; max-width: 80%; }
  .user-message { background: #00409F; color: #fff; border-radius: 12px 0 12px 12px; padding: 12px 16px; margin-bottom: 12px; max-width: 80%; margin-left: auto; }
  .chat-messages { height: 350px; overflow-y: auto; padding: 20px; background: #fafafa; }
  
  /* Section style adjustments */
  .section-title .sub-title { color: #00409F; }
  .section-title .sub-title::before,
  .section-title .sub-title::after { background: #00409F; }
  
  /* Welfare/CSR Section */
  .welfare-card { border-top: 4px solid #00409F; border-radius: 12px; transition: all 0.3s; }
  .welfare-card:hover { box-shadow: 0 10px 30px rgba(26,122,74,0.15); transform: translateY(-4px); }
  
  /* Progress counters */
  .counter-item { text-align: center; padding: 30px 20px; }
  .counter-item .count { font-size: 3rem; font-weight: 700; color: #00409F; }
  
  /* Virtual Tour iframe */
  .virtual-tour-frame { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
  
  /* Scrollbar */
  ::-webkit-scrollbar-thumb { background: #00409F; }
  
  /* Topbar */
  .topbar-jnh { background: #00409F; padding: 8px 0; }
  .topbar-jnh a, .topbar-jnh span { color: rgba(255,255,255,0.9); font-size: 0.85rem; }
  .topbar-jnh a:hover { color: #fff; }
  
  /* Footer */
  footer.jnh-footer { background: #00409F; color: #ccc; }
  footer.jnh-footer h5 { color: #fff; font-weight: 700; }
  footer.jnh-footer a { color: #aaa; transition: color 0.3s; }
  footer.jnh-footer a:hover { color: #00409F; }
  footer.jnh-footer .footer-bottom { background: #111f11; padding: 15px 0; }
  
  /* Emergency strip */
  .emergency-strip { background: #c0392b; color: #fff; padding: 8px 0; font-weight: 600; font-size: 0.9rem; text-align: center; }
  
  /* Animations */
  .wow { visibility: hidden; }
  

.gallery-img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
}

.owl-nav{
    margin-top:20px;
    text-align:center;
}

.owl-nav button{
    width:45px;
    height:45px;
    border-radius:50%!important;
    background:#0d6efd!important;
    color:#fff!important;
    font-size:22px!important;
    margin:0 8px;
}

.owl-nav button:hover{
    background:#003c99!important;
}

.owl-dots{
    margin-top:15px;
}


