@media screen and (max-width: 1024px) {

    .nav {
        gap: 16px;
    }

    .hero-inner {
        grid-template-columns: 50% 50%;
    }

    .hero-title {
        font-size: 38px;
    }

    .search-form {
        gap: 12px;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .step-arrow {
        display: none;
    }

    .step-card {
        min-height: 150px;
    }
    .donor-ad-grid {
        grid-template-columns: 1fr;
    }

    .donor-row {
        grid-template-columns:
            1.4fr
            .45fr
            1fr
            .8fr
            .55fr
            30px;
    }

    .donor-ads {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .business-ad,
    .hospital-ad {
        border-radius: 8px;
    }

    .ad-dots {
        display: none;
    }
    .blood-banks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .blood-bank-card {
        min-height: 125px;
    }
    .advertisement-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .ad-banner {
        height: 125px;
    }
    .donor-stories-grid {
        grid-template-columns: 1fr;
    }

    .stories-list {
        gap: 12px;
    }
    .donation-banner {
        padding: 15px;
    }

    .donation-visual {
        width: 110px;
    }

    .donation-visual img {
        width: 105px;
    }

    .donation-description {
        width: 38%;
    }

    .donation-options {
        width: 48%;
    }

    .donation-amounts {
        gap: 5px;
    }
    .hero-cta-inner {
        padding: 18px 20px;
        flex-wrap: wrap;
    }

    .hero-cta-text {
        width: 55%;
    }

    .hero-cta-icon {
        width: 80px;
    }

    .hero-cta-actions {
        width: 100%;
        margin: 12px 0 0;
    }
}

@media (max-width: 800px) {
    .our-story-grid {
        grid-template-columns: 1fr 1fr;

        gap: 20px;
    }

    .our-story-image {
        height: 220px;
    }

    .our-story-content {
        padding-right: 0;
    }

    .our-story-content h2 {
        font-size: 17px;
    }

    .our-story-content p {
        font-size: 10px;
    }
    .login-modal-grid {
        grid-template-columns: 1fr;
    }
    .login-brand img {
        margin: 0 auto;
    }
    .login-illustration {
        height: 200px;
    }
    .login-left {
        padding: 36px 36px 20px;
    }
    .login-wave-content {
        display: none;
    }
    .login-footnote, .login-footnote i {
        color: #fffefe;
    }
    .login-right {
        padding: 0px 30px 15px;
    }
    .header {
        height: auto;
        padding: 15px 0;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0px 0 00px;
    }
    .hero {
        min-height: auto;
        background-size: cover;
    }
    section.hero:after {
        content: "";
        height: 100%;
        width: 100%;
        background: linear-gradient(45deg, #f8b6b6, transparent);
        /* z-index: 0; */
        position: absolute;
        top: 0;
        left: 0;
    }
    .features {
        flex-wrap: wrap;
        gap: 20px;
    }

    .search-form {
        grid-template-columns: 1fr 1fr;
    }
    .blood-actions-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        height: 150px;
    }

    .support-card {
        height: auto;
        min-height: 125px;
    }

    .app-card {
        height: 200px;
    }

    .statistics {
        height: auto;
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        min-height: 90px;
        border-bottom: 1px solid #ddd;
    }
    .stat:nth-child(2) {
        border-right: 0;
    }
    section.search_wrap {
        padding-top: 40px;
        margin-top: 0;
    }
    .requests-grid {
        grid-template-columns: 1fr;
    }

    .donation-card {
        min-height: 260px;
    }
    .nearby-donors {
        padding: 12px;
    }

    .donor-row {
        grid-template-columns:
            1fr
            40px
            35px;

        gap: 7px;

        padding: 9px 0;
    }

    .donor-person {
        grid-column: 1;
    }

    .blood-group {
        grid-column: 2;
        grid-row: 1;
    }

    .donor-location {
        grid-column: 1;
        grid-row: 2;
        padding-left: 43px;
    }

    .last-donation {
        display: none;
    }

    .contact-btn {
        grid-column: 1;
        grid-row: 3;

        width: 100px;
        margin-left: 43px;
    }

    .message-btn {
        grid-column: 3;
        grid-row: 1;
    }

    .donor-ads {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}
@media (max-width: 650px) {
    .our-story-section {
        padding: 20px 0 30px;
    }

    .our-story-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .our-story-image {
        height: 220px;

        order: 1;
    }

    .our-story-content {
        order: 2;
    }

    .our-story-content h2 {
        font-size: 17px;
    }

    .our-story-content p {
        font-size: 10px;
        line-height: 1.6;
    }
    .blood-banks-section {
        padding: 20px 0 30px;
    }

    .blood-banks-header h2 {
        font-size: 15px;
    }

    .view-all-banks {
        font-size: 8px;
    }

    .blood-banks-grid {
        grid-template-columns: 1fr;
    }

    .blood-bank-card {
        min-height: 125px;
    }

    .bank-info h3 {
        font-size: 10px;
    }

    .bank-info p,
    .bank-info strong {
        font-size: 8px;
    }
    .advertisement-section {
        padding: 16px 0 00px;
    }

    .advertisement-grid {
        grid-template-columns: 1fr;
    }

    .ad-banner {
        height: 135px;
    }

    .ad-banner-content {
        width: 55%;
    }

    .ad-banner-content h3 {
        font-size: 17px;
    }

    .ad-banner-content p {
        font-size: 9px;
    }

    .ad-btn {
        height: 25px;
        font-size: 8px;
    }
    .donor-stories {
        padding: 20px 0 30px;
    }

    .donor-content {
        width: 65%;
        padding: 22px 16px;
    }

    .donor-content h2 {
        font-size: 16px;
    }

    .donor-intro {
        font-size: 9px;
    }

    .stories-list {
        grid-template-columns: 1fr;
    }

    .story-card {
        min-height: 130px;
    }

    .story-text {
        min-height: auto;
    }
    .donation-banner {
        min-height: 0;
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 10px;
        padding: 15px;
    }

    .donation-visual {
        width: 100px;
        height: 120px;
        grid-row: span 2;
    }

    .donation-visual img {
        width: 100px;
        height: 115px;
    }

    .donation-description {
        width: auto;
        padding-left: 0;
    }

    .donation-options {
        width: auto;
        margin: 5px 0 0;
    }

    .donation-amounts {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-cta-inner {
        display: block;
        text-align: center;
        padding: 20px 15px;
    }

    .hero-cta-text {
        width: 100%;
    }

    .hero-cta-text h2 {
        font-size: 16px;
    }

    .hero-cta-text p {
        margin: auto;
        font-size: 9px;
    }

    .hero-cta-icon {
        width: 100%;
        height: 45px;
        margin: 5px 0;
        font-size: 38px;
    }

    .hero-cta-actions {
        min-width: 0;
        width: 100%;
    }

    .hero-cta-title {
        font-size: 10px;
    }

    .hero-cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 7px;
    }

    .cta-btn {
        padding: 0 11px;
    }
}
@media (max-width: 520px) {
    .site-footer {
        padding-top: 25px;
    }
    section.donation_wrap .donation-card {
        display: block;
    }
    .donation_amount_wrap {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 20px;
    }

    .footer-brand p {
        max-width: 280px;
    }

    .footer-bottom {
        min-height: 40px;
        padding: 0 15px;
        text-align: center;
        font-size: 8px;
    }
    .container {
        width: min(100% - 30px, 1160px);
    }

    .logo {
        font-size: 21px;
    }

    .header-buttons {
        gap: 5px;
    }

    .login-btn,
    .register-btn {
        padding: 8px 12px;
    }

    .nav {
        font-size: 11px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-buttons {
        gap: 10px;
        flex-wrap: wrap;
    }

    .primary-btn, .secondary-btn {
        flex: 1;
        min-width: 150px;
        white-space: nowrap;
    }
    .features {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .feature:last-child {
        grid-column: 1 / -1;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .search-box {
        padding: 16px;
    }
    .how-it-works {
        padding: 16px 0;
    }

    .section-heading h2 {
        font-size: 18px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .step-card {
        min-height: auto;
        padding: 18px 15px;
    }

    .step-icon {
        font-size: 29px;
    }

    .step-card h3 {
        font-size: 13px;
    }

    .step-card p {
        font-size: 11px;
    }
    .blood-actions{
        padding: 8px 0 0px;
    }
    section {
        padding: 16px 0;
    }
    .action-card {
        padding: 17px;
    }

    .action-content {
        width: 62%;
    }

    .action-card h3 {
        font-size: 14px;
    }

    .action-card p {
        font-size: 9px;
    }

    .support-card {
        padding: 18px;
    }

    .support-icon {
        width: 65px;
        font-size: 35px;
    }

    .support-content h3 {
        font-size: 14px;
    }

    .support-content p {
        font-size: 9px;
    }

    .app-card {
        height: 190px;
        padding: 15px;
    }

    .app-content {
        width: 57%;
    }

    .app-content h3 {
        font-size: 13px;
    }

    .app-content p {
        font-size: 8px;
    }

    .store-buttons img {
        width: 68px;
    }
    .requests-card {
        padding: 12px;
    }

    .blood-request {
        grid-template-columns: 30px 1fr auto;
    }

    .request-time {
        display: none;
    }

    .requests-header h2 {
        font-size: 13px;
    }

    .donation-card {
        padding: 18px 14px;
    }

    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .donation-top h2 {
        font-size: 13px;
    }

    .donation-top p {
        font-size: 8px;
    }

    .donate-btn {
        width: 130px;
    }
    .donation-banner {
        grid-template-columns: 80px 1fr;
        gap: 8px;
    }

    .donation-visual {
        width: 80px;
        height: 115px;
    }

    .donation-visual img {
        width: 80px;
    }

    .donation-description h2 {
        font-size: 13px;
    }

    .donation-description p {
        font-size: 8px;
    }

    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .donation-amount {
        height: 38px;
    }

    .custom-donation {
        height: 34px;
    }
    section.search_wrap {
        padding-top: 16px;
        margin-top: 0;
        padding-bottom: 0;
    }
}