/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    background: #f7f7f7;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Sticky Header */
.main-header {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Header Layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo img {
    height: 60px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.nav-links li a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    padding: 8px 11px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #d32f2f; /* hover color */
}

.nav-links li a.active {
    color: #d32f2f; /* active color */
    font-weight: bold;
    border-bottom: 2px solid #d32f2f; /* optional underline */
}


/* Pipe color */
.sep {
    color: #d32f2f;
    font-weight: bold;
}

/* Mobile */
.menu-toggle {
    display: none;
}

.home-icon {
    font-size: 20px;
    color: #333;
    margin-right: 10px;
    text-decoration: none;
    display: none; /* hidden by default */
}

.home-icon i {
    pointer-events: none; /* icon itself not clickable, link is */
}

/* Show home icon only in mobile view */


@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        width: 220px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        display: none;
    }

    .nav-links.show {
        display: flex;
    }

     /* Hide all pipes on mobile */
    .sep {
        display: none;
    }

    /* Insert separator before Login */
    .nav-links li:last-child {
        border-top: 1px solid #ddd;
        margin-top: 10px;
        padding-top: 10px;
    }
     .home-icon {
        display: inline-block;
    }
}


/* FOOTER */
.main-footer {
    background: #222;
    color: #ccc;
    padding: 30px 0 10px;
    margin-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #444;
    font-size: 12px;
}

/* -----------------------------------------
   ✅ HERO SLIDER
----------------------------------------- */
.banner {
    position: relative;
    height: 70vh;
    min-height: 350px;
    overflow: hidden;
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

.slide-content {
    position: relative;
    color: #fff;
    max-width: 600px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.7);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* -----------------------------------------
   ✅ CTA STRIP
----------------------------------------- */
.cta-strip {
    background: #f5e9ea;
    padding: 12px 0;
}

.cta-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cta-strip p {
    font-size: 14px;
}

/* -----------------------------------------
   ✅ SERVICES SECTION
----------------------------------------- */
.services {
    background: #fff;
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #d32f2f;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fafafa;
    padding: 18px;
    border-radius: 6px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.service-card h3 {
    font-size: 18px;
    color: #b71c1c;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.service-link {
    font-size: 13px;
    color: #d32f2f;
    font-weight: bold;
}

/* -----------------------------------------
   ✅ COUNTERS
----------------------------------------- */
.counters {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent),
                linear-gradient(135deg, #d32f2f, #8e0000);
    color: #fff;
    padding: 60px 0;
}

.counters-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.counter-number {
    font-size: 32px;
    font-weight: bold;
}

.counter-label {
    font-size: 18px;
}

.counter-item {
    text-align: center;
}

.counter-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------------------
   ✅ WHY US
----------------------------------------- */
/* ✅ Video styling */

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(211,47,47,0.6);
    border: 3px solid rgba(255,255,255,0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}



.why-us {
    background: #fff;
    padding: 40px 0;
}




.why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.why-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.1);
}

.why-card {
    flex: 1 1 calc(25% - 20px);
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.why-card:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .why-grid {
    flex-direction: column;
  }

  .why-card {
    flex: 1 1 100%;
  }
}





/* -----------------------------------------
   ✅ GALLERY
----------------------------------------- */
.gallery {
    background: #f9f9f9;
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.gallery-cta {
    text-align: center;
    margin-top: 20px;
}

/* -----------------------------------------
   ✅ FLOATING BUTTONS
----------------------------------------- */
.donate-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffa007; /* Bright Red #d32f2f*/
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    transition: 0.3s;
}

.donate-btn:hover {
    background: #b71c1c;
    transform: scale(1.05);
}

.whatsapp-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #25D366;
    color: #fff;
    font-size: 24px;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* -----------------------------------------
   ✅ SCROLL ANIMATIONS
----------------------------------------- */
.wow {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.wow.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------------
   ✅ RESPONSIVE FIXES
----------------------------------------- */
@media (max-width: 768px) {
    .banner { height: 55vh; }
    .slide-content h2 { font-size: 26px; }
    .counters-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .banner { height: 50vh; }
    .gallery-item img { height: 140px; }
}

/*-----------------------------------------
   ✅ ABOUT US PAGE
----------------------------------------- */
/* PAGE HERO */


/* MISSION & VISION */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.mv-card {
    background: #fafafa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
    text-align: center;
}
.mv-card h3 {
    color: #b71c1c;
    margin-bottom: 10px;
}

/* TIMELINE */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.timeline-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}
.timeline-item .year {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 8px;
}

/* TEAM */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.team-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}
.team-card img {
    width: 100%;
    height: 180px;
    /*object-fit: cover;*/
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 10px;
}
.team-card h3 {
    color: #b71c1c;
    margin-bottom: 5px;
}
.team-card p {
    font-size: 14px;
    color: #555;
}
/*-----------------------------------------
   ✅ ABOUT BLOOD PAGE  
----------------------------------------- */


/* BLOOD GROUPS */
.blood-groups {
    background: #fff;
    padding: 40px 0;
}

.blood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.blood-card {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    transition: 0.3s;
}

.blood-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blood-card h3 {
    font-size: 22px;
    color: #d32f2f;
    margin-bottom: 10px;
}

/* ELIGIBILITY */
.eligibility {
    background: #f9f9f9;
    padding: 40px 0;
}

.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.eligibility-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.eligibility-card h3 {
    color: #b71c1c;
    margin-bottom: 10px;
}

/* BENEFITS */
.benefits {
    background: #fff;
    padding: 40px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.benefit-card h3 {
    color: #d32f2f;
    margin-bottom: 10px;
}
/*-----------------------------------------
   ✅ BLOOD SEARCH PAGE
----------------------------------------- */

/* BLOOD SEARCH FORM */
.blood-search {
    background: #fff;
    padding: 40px 0;
}

.search-form {
    background: #fafafa;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #eee;
    max-width: 600px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #b71c1c;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #d32f2f;
}

/* INFO SECTION */
.search-info {
    background: #f9f9f9;
    padding: 40px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.info-card h3 {
    color: #d32f2f;
    margin-bottom: 10px;
}

/*-----------------------------------------
   ✅ LANDING POPUP     
----------------------------------------- */

/* ✅ LANDING POPUP */
/* ✅ LANDING POPUP (Centered + Shadow Spread) */
/* ✅ LANDING POPUP (Always Centered) */

.landing-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45); /* dark overlay */
    backdrop-filter: blur(2px);   /* ✅ BLUR EFFECT */
    -webkit-backdrop-filter: blur(2px); /* ✅ Safari support */
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.landing-popup.show {
    display: flex !important;   /* ✅ Only show when JS adds .show */
}

.popup-content {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 25px rgba(211,47,47,0.45);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 26px;
    cursor: pointer;
    color: #444;
    transition: 0.3s;
}

.popup-close:hover {
    color: #d32f2f;
}

.popup-animate {
    animation: popupShow 0.35s ease-out forwards;
}

@keyframes popupShow {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ✅ Popup Zoom Animation */
@keyframes popupZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ✅ Border Shadow Spread Animation */
@keyframes popupGlow {
    0% {
        box-shadow: 0 0 0 rgba(211,47,47,0.0);
    }
    100% {
        box-shadow: 0 0 25px rgba(211,47,47,0.45);
    }
}

/*-----------------------------------------
   ✅ SIGNUP PAGE
----------------------------------------- */
.signup-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.signup-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #d32f2f;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #b71c1c;
}

.signup-msg {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/*-----------------------------------------
   ✅ LOGIN PAGE                
----------------------------------------- */

.login-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #d32f2f;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #b71c1c;
}

.login-msg {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}
.login-links {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.login-links a {
    color: #d32f2f;
    font-weight: 600;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-links span {
    margin: 0 8px;
    color: #999;
}

/* Forget Password OTP & Reset Forms Animation */

#otpForm, #resetForm {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-link {
    display: inline-block;
    color: #fff;
    background: #27972f;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
}

