.button-color{
  color: #e62d26;
}

.background-color {
  background: linear-gradient(135deg, #b31217, #e62d26, #ff5f6d);
}


.navbar-nav .nav-item {
  margin-right: 12px;
}
.navbar-nav .nav-item:last-child {
  margin-right: 0;
}
/* Dropdown hidden by default */
.navbar-nav .nav-item .dropdown {
  display: none;
  position: absolute;
  background: #fff; /* white background */
  padding: 8px 0;
  margin-top:1px;
  list-style: none;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 6px;
  z-index: 1000;
}

/* Show dropdown on hover */
.navbar-nav .nav-item:hover > .dropdown {
  display: block;
}

/* Dropdown items */
.navbar-nav .dropdown li {
  padding: 0;
}

.navbar-nav .dropdown li a {
  display: block;
  padding: 10px 15px;
  color: #000;
  text-decoration: none;
  transition: background 0.2s;
}

/* Hover effect on dropdown items */
.navbar-nav .dropdown li a:hover {
  background: #f5f5f5;
  color: #e62d26;
}



/* Custom scrollbar color: gray */
::-webkit-scrollbar {
  width: 10px;
  background: #505050;
}
::-webkit-scrollbar-thumb {
  background: #585858;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #353535;
}

/* For Firefox */
html {
  scrollbar-color: #888 #f1f1f1;
  scrollbar-width: thin;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}





.nav-link:hover,
.nav-link.active {
  color: #e62d26 !important;
}

/* Hero Section */
.hero-overlay {
  position: relative;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #b30000;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Cards */

/* h1, h2, h3, h4, h5, h6 {
    color: #b30000;
} */

/* .active {
    color: #ff3333;
} */

/* Stories Carousel */
.stories-carousel {
  position: relative;
  overflow: hidden;
}

.story-slide {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.story-slide.active {
  display: block;
}

/* Updates Section */
.updates-section {
  padding: 5rem 0;
}

.updates-section .card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.updates-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.updates-section .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.updates-section .card:hover .card-img-top {
  transform: scale(1.05);
}

/* CTA Section */







/* Footer */
.footer {
  padding: 3rem 0 1rem;
}

.social-links a {
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  transform: translateY(-3px);
  /* color: var(--primary-color) !important; */
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#blogsList {
  max-height: 232px; /* Adjust as needed */
  overflow-y: auto;
}

/* Mobile Hamburger Menu Enhancements */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  background: transparent;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  width: 1.5rem;
  height: 1.5rem;
  background-image: none;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #000;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: 0.25rem;
}

.navbar-toggler-icon span {
  top: 0.75rem;
}

.navbar-toggler-icon::after {
  top: 1.25rem;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0.75rem;
  background-color: #e62d26;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0.75rem;
  background-color: #e62d26;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
  opacity: 0;
  transform: translateX(-20px);
}

/* Mobile Menu Styling */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1050;
    padding: 3rem 1.5rem 2rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .navbar-collapse.show {
    left: 0;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-item {
    margin: 0;
    margin-bottom: 0.5rem;
  }
  
  .navbar-nav .nav-link,
  .navbar-nav .nav-link1 {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 0;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    width: 100%;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link1:hover {
    color: #e62d26;
  }
  
  /* Mobile dropdown styling */
  .navbar-nav .nav-item .dropdown {
    position: static;
    display: none;
    background: #f8f9fa;
    margin: 0.5rem 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    border-left: 3px solid #e62d26;
  }
  
  .navbar-nav .nav-item:hover .dropdown {
    display: block;
  }
  
  .navbar-nav .dropdown li a {
    padding: 0.75rem 1rem;
    color: #666;
    font-size: 0.95rem;
  }
  
  .navbar-nav .dropdown li a:hover {
    background: #e9ecef;
    color: #e62d26;
  }
  
  /* Mobile menu close button */
  .navbar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    z-index: 1051;
  }
  
  .navbar-close:hover {
    color: #e62d26;
  }
  
  /* Mobile button adjustments */
  .navbar .d-flex {
    margin-top: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .navbar .btn {
    width: 100%;
    text-align: center;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .navbar-collapse {
    width: 100%;
  }
  
  .navbar-brand img {
    width: 40px;
  }
  
  .navbar-brand span {
    font-size: 1rem;
  }
}

.admin-dashboard-container {
  padding-top: 20px;
  padding-bottom: 50px;
}
.dashboard-header {
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 10px;
}
.form-card,
.stats-section .card,
.card {
  border-radius: 10px;
}
.form-control,
.form-select {
  border-radius: 8px;
}
.card-body h6 {
  font-weight: 600;
  margin-bottom: 5px;
}
.bg-gradient-primary {
  background: linear-gradient(45deg, #0062e6, #33aeff);
}
.bg-gradient-success {
  background: linear-gradient(45deg, #28a745, #5dd17c);
}
.bg-gradient-info {
  background: linear-gradient(45deg, #17a2b8, #5edaf0);
}
.bg-gradient-warning {
  background: linear-gradient(45deg, #ffc107, #ffd75c);
}
.card:hover {
  transform: translateY(-3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.btn {
  border-radius: 8px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem auto;
}

/* Navbar underline effect */
.navbar-nav .nav-link {
  position: relative;
  display: inline-block;   /* underline width matches text */
  color: #000;
  padding: 5px 0;
  text-decoration: none;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;  /* move underline further below text */
  width: 0;
  height: 2px;
  background-color: #e62d26;
  transition: width 0.3s ease-in-out;
  z-index: 5; /* ensure it shows above bg */
}

/* Hover underline */
.navbar-nav .nav-link:hover::after {
  width: 90%;
}

/* Keep underline on active/current page */
.navbar-nav .nav-link.active::after {
  width: 95%;
}

/* new cscsss */

/* Navbar underline effect */
.navbar-nav .nav-link1 {
  position: relative;
  display: inline-block;   /* underline width matches text */
  color: #000;
  padding: 5px 0;
  text-decoration: none;
}

.navbar-nav .nav-link1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;  /* move underline further below text */
  width: 0;
  height: 2px;
  background-color: #e62d26;
  transition: width 0.3s ease-in-out;
  z-index: 5; /* ensure it shows above bg */
}

/* Hover underline */


.nav-link1:hover,
.nav-link1.active {
  color: #e62d26 !important;
}

/* Admin Form Styling */
.admin-form-input {
  max-width: 400px !important;
  margin: 0 auto;
}

.admin-login form {
  max-width: 400px;
  margin: 0 auto;
}

/* Blog creation form styling */
#blogForm .form-control,
#blogForm .form-select {
  max-width: 100% !important;
}

/* Center the blog creation form */
.card-body .form-control {
  width: 100%;
}

/* Make sure all admin inputs are properly sized */
.admin-dashboard .form-control,
.admin-dashboard .form-select {
  max-width: 100%;
}

/* Admin Panel mobile adjustments */
@media (max-width: 991.98px) {
  .admin-dashboardd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }
  
  .admin-dashboardd .navbar-text {
    font-size: 14px;
    margin: 0;
    padding: 6px 10px;
    white-space: nowrap;
  }
  
  .admin-dashboardd .btn {
    font-size: 13px;
    padding: 6px 10px;
    margin: 0;
    min-height: auto;
    line-height: 1.2;
  }
}

@media (max-width: 576px) {
  .admin-dashboardd {
    flex-direction: column;
    gap: 6px;
    padding: 6px 0;
  }
  
  .admin-dashboardd .navbar-text {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .admin-dashboardd .btn {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  /* Ensure navbar doesn't get too tall on mobile */
  .navbar {
    min-height: 60px;
  }
  
  .navbar .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}
