/* BloodBank24 Custom Styles */
:root {
    --primary-red: #dc3545;
    --secondary-red: #c82333;
    --light-red: #f8d7da;
    --dark-red: #721c24;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav {
  --bs-nav-link-color: #fff;
 }

.hero-section {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.status-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.status-card .progress {
    height: 8px;
}

.stat-card {
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-red);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.affiliation-logo {
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.affiliation-logo:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
}

.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-danger:hover {
    background-color: var(--secondary-red);
    border-color: var(--secondary-red);
}

.text-danger {
    color: var(--primary-red) !important;
}

.bg-danger {
    background-color: var(--primary-red) !important;
}

/* Page specific styles */
.page-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 100px 0 50px 0;
    margin-top: 76px;
}

.content-section {
    padding: 60px 0;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.team-member {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-red);
    margin-bottom: 20px;
}

.infrastructure-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-red);
}

.blood-group-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.blood-group-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
}

.availability-high {
    color: #28a745;
}

.availability-medium {
    color: #ffc107;
}

.availability-low {
    color: #dc3545;
}

.process-step {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    margin-bottom: 30px;
}

.process-step::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    font-size: 2rem;
}

.process-step:last-child::after {
    display: none;
}

.camp-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    padding: 25px;
}

.camp-card:hover {
    transform: translateY(-5px);
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 5px solid var(--primary-red);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--primary-red);
    font-size: 2rem;
}

.news-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-red);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 30px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.contact-info i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: block;
}

.contact-info h5 {
    margin-bottom: 15px;
}

.contact-info h4 {
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info small {
    margin-bottom: 20px;
    display: block;
}

.contact-info .btn {
    margin-top: auto;
    align-self: center;
    width: auto;
    min-width: 140px;
}

/* Contact cards equal height using table display */
.contact-section {
    display: table;
    width: 100%;
}

.contact-section .row {
    display: table-row;
}

.contact-section .col-lg-4 {
    display: table-cell;
    vertical-align: top;
    width: 33.333%;
    padding: 0 0.75rem;
}

.contact-section .contact-info {
    height: 100%;
    min-height: 420px;
    width: 100%;
}

/* Fallback for older browsers */
@supports not (display: table) {
    .contact-section .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .contact-section .col-lg-4 {
        display: block;
        width: 33.333%;
        flex: 0 0 33.333%;
    }
    
    .contact-section .contact-info {
        height: 100%;
    }
}

.emergency-banner {
    background: linear-gradient(45deg, #dc3545, #ff4757);
    color: white;
    padding: 15px 0;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.form-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-red);
}

.certificate-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 30px;
}

.certificate-item i {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 50px 0;
    }
    
    .process-step::after {
        display: none;
    }
    
    .status-card {
        margin-bottom: 15px;
    }
    
    .team-member {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .page-header {
        padding: 80px 0 30px 0;
    }
}
