/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(
            135deg,
            rgba(16, 185, 129, 0.95),
            rgba(4, 120, 87, 0.95)
        ),
        url("https://images.unsplash.com/photo-1615461066841-6116e61058f4?w=1920")
            center/cover;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 60%
    );
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Image Slider */
.hero-image {
    position: relative;
    z-index: 2;
}

.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 400px;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    filter: brightness(0.8) contrast(1.1) saturate(1.2);
}

.slider-image.active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-image {
        order: -1;
    }

    .slider-track {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 30px;
        justify-content: space-around;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .slider-track {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        gap: 20px;
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
    }

    .slider-track {
        height: 250px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 24px;
    }
}

/* Blood Bank Cards */
.blood-drop {
    width: 55px !important;
    height: 55px !important;
    object-fit: contain;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(229, 9, 20, 0.3);
    transition: transform 0.3s ease, color 0.3s ease;
}

.blood-drop:hover {
    color: #ff4b5c;
    transform: translateY(-3px);
}

.blood-section {
    padding: 0;
    padding-top: 80px;
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent-orange),
        var(--primary-green)
    );
    border-radius: 2px;
}
.blood-card-link {
    display: block; /* allow divs inside */
    text-decoration: none; /* remove underline */
    color: inherit; /* keep normal text color */
}

.blood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.blood-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.blood-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blood-red), #dc2626);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.blood-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blood-card:hover::before {
    transform: scaleX(1);
}

.blood-drop {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 5px 15px rgba(239, 68, 68, 0.3));
    transition: transform 0.4s ease;
}

.blood-card:hover .blood-drop {
    transform: scale(1.1) rotate(10deg);
}

.blood-group {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.blood-count {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blood-red);
}

.count-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(180, 22, 22, 0.08);
    position: relative;
    overflow: hidden;
}

.search-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 40px;
}

.search-title i {
    color: var(--primary-green);
    margin-right: 10px;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-select,
.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 14px;

    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    background: white;
}

.btn-search {
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--dark-green)
    );
    color: white;
    border: none;
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

/* Info Cards */
.info-section {
    padding: 80px 0;
    background: white;
}

.info-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid #f3f4f6;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.info-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.info-card:hover .info-image {
    transform: scale(1.05);
}

.info-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.info-title i {
    color: var(--primary-green);
    margin-right: 10px;
}

.info-text {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Profile Section */
.profile-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.profile-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 25px;
    object-fit: cover;
    margin: 0 auto 25px;
    border: 5px solid var(--primary-green);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.profile-role {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-more {
    background: var(--primary-green);
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: var(--dark-green);
    transform: scale(1.05);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .blood-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .search-section {
        padding: 30px 20px;
    }
}
/* For extra small devices (mobile phones) */
@media (max-width: 576px) {
    .blood-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    .blood-card {
        padding: 13px 5px;
        margin-bottom: 10px;
    }
    .search-section {
        padding: 25px;
    }
    .info-section {
        padding: 30px 0;
      
    }
    
}
