/* Global Styles */
:root {
  --primary-red: #dc3545;
  --primary-dark: #c82333;
  --light-gray: #f8f9fa;
  --border-gray: #dee2e6;
  --white: #FFF;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f7f5f5;
}

a {
    color: #000;
    text-decoration: none;
}
/* Navbar Styles */
.navbar-brand {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-red) !important;
}

.navbar-nav .btn {
  width: 80px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  padding: 80px 0;
}

.hero-section h1 {
  line-height: 1.2;
}

.min-vh-75 {
  min-height: 75vh;
}
.mobile-hero-section {
    display: none;
}

/* =======================================
   Hero Slider
======================================= */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 600px;
}

.hero-slider-section img {
    width: 100%;
    height: 600px;
    object-fit: fill;
}

.swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    background-repeat: no-repeat;
    position: relative;
    height: 450px;
    width: 100%;
    transition: background-image 0.5s ease-in-out;
}

.overlay-content {
    position: absolute;
    bottom: 10%;
}

/* Swiper Navigation Customization (Arrows) */
.swiper-button-next,
.swiper-button-prev {
    color: #dc3545 !important;
    background-color: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    opacity: 0.9;
    transition: opacity 0.3s, background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    background-color: #f8d7da;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

/* Swiper Pagination Customization (Dots) */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: #dc3545;
    opacity: 1;
    transform: scale(1.2);
}


/* Statistics Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
}

.stats-section i {
  display: block;
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-card i {
  transition: transform 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.1);
}

.service-section-title {
    font-size: 36px;
}


/* How It Works Steps */
.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

/* Blood Group Cards */
.blood-group-card {
  background: white;
  border: 3px solid var(--primary-red);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.blood-group-card:hover {
  background: var(--primary-red);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.blood-group-card i {
  font-size: 2rem;
  color: var(--primary-red);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.blood-group-card:hover i {
  color: white;
}

.blood-group-card h3 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

/* Blood Badge */
.blood-badge {
  display: inline-block;
  background: var(--primary-red);
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Cards */
.card {
  border-radius: 10px;
  overflow: hidden;
}

.card-header {
  border-bottom: none;
  font-weight: 600;
}

/* Tables */
.table thead {
  background: var(--light-gray);
}

.table-hover tbody tr {
  transition: background-color 0.3s ease;
}

.table-hover tbody tr:hover {
  background-color: rgba(220, 53, 69, 0.05);
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 10px 25px;
  font-weight: 500;
  line-height: 1;
  transition: all 0.3s ease;
}

.btn-danger {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

.btn-danger:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white) !important;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-danger:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

/* Forms */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Badges */
.badge {
  padding: 8px 15px;
  font-weight: 500;
  border-radius: 20px;
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
}

/* Footer */
footer {
  margin-top: auto;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-red) !important;
}

/* Login */
.login-main-block {
  height: calc(93vh - 100px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.service-card {
  animation: fadeIn 0.6s ease;
}

.mobile-navbar {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .stats-section h2 {
    font-size: 1.5rem;
  }

  .blood-group-card {
    padding: 20px;
  }

  .step-number {
    width: 25px;
    height: 25px;
    font-size: 0.85rem;
    margin: 0 auto 0.5rem;
  }
  
  .how-it-works h5 {
      font-size: 16px;
      margin-bottom: 5px;
  }
  
  .how-it-works p {
      font-size: 12px;
  }

  .offcanvas.offcanvas-end {
    width: 300px;
  }

  .offcanvas-body .navbar-nav {
    align-items: start !important;
  }

  .navbar-nav .btn {
    padding: 10px 0;
  }

  .navbar-toggler {
    border: none;
    padding: 0;
  }

  .navbar-toggler:focus {
    box-shadow: inherit;
  }
  
  .navbar-toggler-icon {
      width: 1.2em;
    height: 1.2em;
  }
  
  .hero-slider-section {
        position: relative;
        width: 100%;
        height: 180px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .hero-slider-section img {
        height: 200px;
        object-fit: fill;
    }
    .service-card {
        border-radius: 12px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.08);
        min-height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-card i {
        font-size: 1.6rem;
        color: #dc3545;
        margin-bottom: 4px;
        line-height: 1;
    }

    .service-card h6 {
        font-size: 0.85rem;
        font-weight: 600;
        margin: 0;
    }

    .service-card p,
    .service-card .btn {
        display: none;
    }
    
    .services-section p {
        display: none;
    }
    
    .service-section-title {
        font-size: 18px;
        text-align: left;
        position: relative;
    }
    
    .service-card .card-title {
        font-size: 14px;
    }
    
    .app-services-section {
        display: block;
    }
    
    .service-card .card-body {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-direction: column;
        padding: 10px;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    footer {
        display: none;
    }
    
    .mobile-navbar {
        display: block;
        position: fixed;
        background-color: #FFF;
        bottom: 0;
        width: 100%;
        padding: 10px 20px;
        z-index: 99;
    }
    
    .mobile-navbar ul {
        display: flex;
        justify-content: space-between;
        padding-left: 0;
        list-style: none;
        margin-bottom: 0;
    }
    
    .mobile-navbar ul li i {
        font-size: 18px;
    }
    
    .mobile-menu {
        text-align: center;
    }
    
    .mobile-menu h6 {
        font-size: 12px;
        margin-bottom: 0;
    }
    .navbar .navbar-nav  {
        display: none;
    }
    .donor-form h2 {
        font-size: 18px;
    }
    .donor-form p {
        font-size: 12px;
    }
    .form-label {
        font-size: 12px;
    }
    
    .btn-danger {
        font-size: 14px;
    }
    
    .register-main-block {
        margin-bottom: 50px;
    }
    .register-main-block h5.mb-3.text-danger.fw-bold {
        font-size: 18px;
    }
    .pagination {
        flex-wrap: wrap;
    }
    .mobile-hero-section {
        display: block;
    }
    .web-hero-section {
        display: none;
    }
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .btn {
    display: none;
  }
}
