/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-logo {
    height: 47px;
    width: auto;
    filter: brightness(0) saturate(100%);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    margin: auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
    display: block;
    /* Inline responsive styles for top heading */
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    line-height: clamp(1.1, 1.2, 1.3);
    margin-bottom: clamp(12px, 2vw, 20px);
    padding: 0 clamp(10px, 2vw, 20px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: center;
}

.highlight {
    color: #FF1F71;
}

.blue-e {
    color: #3B82F6;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    display: block;
    margin-top: 20px;
}

/* Search Section */
.search-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.search-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0 15px;
}

.back-button {
    background: #FF1F71;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 15px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 0;
    font-size: 16px;
    font-family: 'Urbanist', sans-serif;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}



.filter-dropdowns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 400px;
}

.dropdown-container {
    position: relative;
    transition: all 0.3s ease;
}

.dropdown-container::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF1F71, #FF6B9D);
    border-radius: 0 0 12px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.dropdown-container:focus-within::after {
    opacity: 1;
}

.filter-dropdown {
    padding: 16px 22px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    outline: none;
    min-width: 180px;
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
    padding-right: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    backdrop-filter: blur(10px);
}

.filter-dropdown:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #ffe6f0 100%);
    border-color: #FF1F71;
    box-shadow: 0 6px 20px rgba(255, 31, 113, 0.2);
    transform: translateY(-2px);
}

.filter-dropdown:focus {
    border-color: #FF1F71;
    box-shadow: 0 0 0 4px rgba(255, 31, 113, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    transform: translateY(-1px);
}

.filter-dropdown option {
    padding: 14px 20px;
    background: white;
    color: #374151;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.filter-dropdown option:hover {
    background: linear-gradient(135deg, #fff3e0 0%, #fff7ed 100%);
    color: #F59E0B;
    font-weight: 500;
    transform: translateX(5px);
}

.filter-dropdown option:checked {
    background: linear-gradient(135deg, #fff3e0 0%, #fff7ed 100%);
    color: #F59E0B;
    font-weight: 600;
    border-left: 3px solid #F59E0B;
    padding-left: 17px;
}

.filter-dropdown option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.filter-dropdown option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}

/* Enhanced dropdown list styling */
.filter-dropdown:focus {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.filter-dropdown option:nth-child(even) {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.filter-dropdown option:nth-child(even):hover {
    background: linear-gradient(135deg, #fff3e0 0%, #fff7ed 100%);
}

/* Custom scrollbar for dropdown */
.filter-dropdown::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF1F71, #FF6B9D);
    border-radius: 3px;
}

.filter-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF6B9D, #FF1F71);
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tag-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.category-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    border: 1px solid #d1d5db;
    outline: none;
    text-decoration: none;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.category-tag.agriculture {
    background: white;
    border-color: #d1d5db;
}

.category-tag.arts {
    background: white;
    border-color: #d1d5db;
}

.category-tag.community {
    background: white;
    border-color: #d1d5db;
}

.category-tag.economic {
    background: white;
    border-color: #d1d5db;
}

.category-tag.health {
    background: white;
    border-color: #d1d5db;
}

.category-tag.housing {
    background: white;
    border-color: #d1d5db;
}

.category-tag.safety {
    background: white;
    border-color: #d1d5db;
}

.category-tag:hover {
    background-color: #FFE6F0;
    border-color: #FF1F71;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-tag.selected {
    background-color: #FFF3E0;
    border-color: #F59E0B;
    color: #F59E0B;
}

.tag-icon {
    width: 16px;
    height: 16px;
    color: #000;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    color: #000;
    margin-left: 5px;
}

.category-tag:hover .tag-icon,
.category-tag:hover .arrow-icon {
    color: #FF1F71;
}

.category-tag.selected .tag-icon,
.category-tag.selected .arrow-icon {
    color: #F59E0B;
}

/* Selected Grant Section */
.selected-grant-section {
    padding: 60px 0;
}

.selected-grant-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.selected-grant-container .grant-card {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .selected-grant-container .grant-card {
        min-width: auto;
        max-width: 877px;
    }
}

@media (max-width: 1023px) {
    .selected-grant-container .grant-card {
        min-width: 100%;
        max-width: 100%;
    }
}
.selected-grant-container .grant-card-horizontal {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Featured Grant Card - 2 Column Layout Only - NO THIRD COLUMN */
.grant-card-horizontal .grant-card-inner {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    grid-template-rows: auto !important;
    gap: 24px !important;
    align-items: stretch !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Explicitly set grid columns for children - force 2 columns only */
.grant-card-horizontal .grant-card-inner > .grant-image-wrapper {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: 280px !important;
}

.grant-card-horizontal .grant-card-inner > .grant-card-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

.grant-card-horizontal .grant-image-wrapper {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 0;
}

.grant-card-horizontal .grant-image {
    height: 100%;
}

.grant-card-horizontal .grant-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grant-card-horizontal .grant-details {
    margin-bottom: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
}

.grant-card-horizontal .eligible-applicants {
    margin-bottom: 12px;
}

.grant-card-horizontal .grant-card-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-top: 16px !important;
    grid-column: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.grant-card-horizontal .subscribe-pay-btn,
.grant-card-horizontal .eligible-apply-btn {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    flex: 1;
    min-width: 0;
}

.grant-card-horizontal .eligible-apply-btn {
    margin-left: 0;
}

/* Tablet and smaller screens - responsive grid */
@media (max-width: 900px) {
    .grant-card-horizontal .grant-card-inner {
        grid-template-columns: 200px 1fr !important;
        gap: 16px !important;
    }
    
    .grant-card-horizontal .grant-card-inner > .grant-image-wrapper {
        max-width: 200px !important;
    }
    
    .grant-card-horizontal .grant-image-wrapper {
        max-width: 200px !important;
    }
}

@media (max-width: 768px) {
    .selected-grant-section {
        padding: 40px 0;
    }
    
    .selected-grant-container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .grant-card-horizontal .grant-card-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .grant-card-horizontal .grant-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 16px;
    }
    
    .grant-card-horizontal .grant-card-inner > .grant-image-wrapper {
        max-width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    .grant-card-horizontal .grant-card-inner > .grant-card-content {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    .grant-card-horizontal .grant-card-actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        margin-top: 12px !important;
        width: 100% !important;
    }
    
    .grant-card-horizontal .grant-details {
        gap: 16px !important;
    }
}

@media (max-width: 600px) {
    .selected-grant-container {
        max-width: 100%;
        padding: 0 16px;
        width: 100%;
    }
    
    .grant-card-horizontal .grant-card-inner {
        gap: 12px !important;
    }

    .grant-card-horizontal .grant-image-wrapper {
        width: 100% !important;
        min-height: 220px;
        max-height: 250px;
        margin-bottom: 8px;
    }

    .grant-card-horizontal .grant-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .grant-card-horizontal .grant-card-actions {
        flex-direction: row !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .grant-card-horizontal .grant-card-actions .subscribe-pay-btn,
    .grant-card-horizontal .grant-card-actions .eligible-apply-btn {
        flex: 1 1 calc(50% - 5px) !important;
        min-width: 140px;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .grant-card-horizontal .grant-card-content {
        gap: 12px;
        width: 100%;
    }

    .grant-card-horizontal .grant-description {
        margin-bottom: 12px;
        font-size: 13px;
        line-height: 1.45;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .grant-card-horizontal .grant-details {
        gap: 12px !important;
        margin-bottom: 12px !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    .grant-card-horizontal .detail-item {
        font-size: 13px;
        gap: 6px;
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .grant-card-horizontal .detail-item span {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .grant-card-horizontal .eligible-applicants {
        margin-bottom: 6px;
        flex-wrap: wrap;
    }
}

@media (max-width: 400px) {
    .selected-grant-container {
        padding: 0 12px;
        width: 100%;
    }

    .grant-card-horizontal .grant-card-inner {
        gap: 10px !important;
    }

    .grant-card-horizontal .grant-image-wrapper {
        min-height: 180px;
        max-height: 220px;
        border-radius: 16px;
        width: 100% !important;
    }

    .grant-card-horizontal .grant-card-content {
        gap: 10px;
        width: 100%;
    }

    .grant-card-horizontal .grant-card-actions {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .grant-card-horizontal .grant-card-actions .subscribe-pay-btn,
    .grant-card-horizontal .grant-card-actions .eligible-apply-btn {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .grant-card-horizontal .grant-description {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .grant-card-horizontal .grant-details {
        margin-bottom: 10px;
        gap: 8px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .grant-card-horizontal .detail-item {
        font-size: 12px;
        width: 100%;
        flex: 1 1 100%;
    }
    
    .grant-card-horizontal .detail-item span {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* Grants Section */
.grants-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
    font-family: 'Urbanist' !important;
}

.grants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.grants-grid .grant-card {
    min-width: 350px;
    
}

@media (max-width: 768px) {
    .grants-grid .grant-card {
        min-width: 300px;
        max-width: 342px;
    }
}

@media (max-width: 480px) {
    .grants-grid .grant-card {
        min-width: 260px;
        max-width: 332px;
    }
}

.grant-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    margin-bottom: 15px;
}

.grant-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}



.grant-funder {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.grant-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    background: #f0f0f0;
    color: #333;
    margin-bottom: 15px;
}

.grant-category.health {
    background: #FFE6F0;
    color: #FF1F71;
}

.grant-category.arts {
    background: #F0E6FF;
    color: #8B5CF6;
}

.grant-category.agriculture {
    background: #E6FFE6;
    color: #10B981;
}

.grant-category.housing {
    background: #E6F3FF;
    color: #3B82F6;
}

.grant-category.safety {
    background: #F0F0F0;
    color: #6B7280;
}

.grant-category.economic {
    background: #FFF3E0;
    color: #F59E0B;
}

.grant-all-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.grant-tag {
    background: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.grant-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.grant-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #666 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.grant-card-horizontal .detail-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #666 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
}

.grant-card-horizontal .detail-item span {
    display: inline-block !important;
    word-break: break-word !important;
}

.detail-item img,
.detail-item svg {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

.grant-card-horizontal .detail-item img,
.grant-card-horizontal .detail-item svg {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

.eligible-applicants {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.applicant-tag {
    background: #f5f5f5;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Grant Image Container */
.grant-image-wrapper {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

/* Grant Image Styles */
.grant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
}

.grant-card:hover .grant-image {
    transform: scale(1.05);
}

/* No Image Message Styles */
.no-image-message {
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.no-image-message:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.no-image-message:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}





/* Support Section */
.support-section {
    padding: 80px 0;
    background: #fafafa;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.support-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
}

.support-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.support-icon.pink {
    background: #FFE6F0;
}

.support-icon.yellow {
    background: #FFF3E0;
}

.support-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.support-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.support-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Grant Cards with Hover Effect */
.grant-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px;
    padding-bottom: 60px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.grant-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.grant-card.featured {
    min-width: 360px;
}

@media (max-width: 768px) {
    .grant-card.featured {
        min-width: 320px;
    }
}

@media (max-width: 480px) {
    .grant-card.featured {
        min-width: 280px;
    }
}

/* Testimonial */
.testimonial {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 4rem;
    color: #FF1F71;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    text-align: center;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.author-title {
    color: #666;
    font-size: 14px;
}

/* Footer */
.footer {
    background: #F5F5F5;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-tagline {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-copyright {
    color: #999;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-box {
        gap: 15px;
    }
    
    .search-input-group {
        min-width: 250px;
    }
    
    .filter-dropdowns {
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        margin: 20px 20px;
        height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 15px;
        padding: 25px;
    }
    
    .search-input-group {
        min-width: 100%;
        width: 100%;
    }
    
    .filter-dropdowns {
        width: 100%;
        min-width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-dropdown {
        width: 100%;
        min-width: 100%;
    }
    
    .grants-grid {
        grid-template-columns: 1fr;
    }
    
    .support-cards {
        grid-template-columns: 1fr;
    }
    
    .tag-row {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        margin: 20px 10px;
        height: 350px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 20px;
        margin: 0 10px 30px 10px;
    }
    
    .search-input-group {
        padding: 0 10px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 12px 0;
    }
    
    .filter-dropdown {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .grant-card {
        padding: 20px;
    }
    
    .support-card {
        padding: 20px;
    }
    
    .category-tags {
        gap: 10px;
    }
    
    .tag-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-tag {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Enhanced Responsive Design for Small Screens */
@media (max-width: 468px) {
    .hero {
        margin: 15px 8px;
        height: 300px;
        border-radius: 15px;
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-top: 15px;
    }
    
    .search-section {
        margin-top: -30px;
        margin-bottom: 40px;
    }
    
    .search-box {
        padding: 15px;
        margin: 0 8px 20px 8px;
        border-radius: 15px;
        gap: 12px;
    }
    
    .search-input-group {
        padding: 0 8px;
        border-radius: 10px;
        min-width: 100%;
        width: 100%;
    }
    
    .search-input {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .back-button {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    
    .filter-dropdowns {
        width: 100%;
        min-width: 100%;
        gap: 8px;
    }
    
    .filter-dropdown {
        width: 100%;
        min-width: 100%;
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 10px;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }
    
    .filter-dropdown option {
        padding: 10px 16px;
        font-size: 12px;
    }

    
    
    /* Subscription Button Responsive */
    .subscribe-pay-btn {
        position: absolute;
        bottom: 10px;
        left: 148px;
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 15px;
        /* box-shadow: 0 3px 10px rgba(255, 31, 113, 0.3); */
    }
    
    .subscribe-pay-btn:hover {
        transform: translateY(-1px);
        /* box-shadow: 0 4px 15px rgba(255, 31, 113, 0.4); */
    }
    
    /* Eligible Apply Button Responsive */
    .eligible-apply-btn {
        bottom: 10px;
        right: 110px;
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 15px;
        box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
    }
    
    .eligible-apply-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 12px rgba(107, 114, 128, 0.3);
    }
    
    /* Grant Card Responsive */
    .grant-card {
        padding: 15px;
        margin: 0 8px;
    }
    
    .grant-title {
        font-size: 16px;
    }
    
    .grant-funder {
        font-size: 13px;
    }
    
    .grant-description {
        font-size: 13px;
    }
    
    .detail-item {
        font-size: 12px;
    }
    
    .detail-item img {
        width: 14px;
        height: 14px;
    }
    
    /* Category Tags Responsive */
    .category-tags {
        gap: 8px;
    }
    
    .tag-row {
        gap: 6px;
        justify-content: center;
    }
    
    .category-tag {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 15px;
    }
    
    .tag-icon,
    .arrow-icon {
        width: 14px;
        height: 14px;
    }
    
    /* Support Section Responsive */
    .support-section {
        padding: 60px 0;
    }
    
    .support-card {
        padding: 20px;
        margin: 0 8px;
    }
    
    .support-title {
        font-size: 1.1rem;
    }
    
    .support-description {
        font-size: 13px;
    }
    
    /* Section Titles Responsive */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
}

/* Extra Small Screen Responsiveness */
@media (max-width: 360px) {
    .hero {
        margin: 10px 5px;
        height: 280px;
        border-radius: 12px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 0.82rem;
        margin-top: 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .search-box {
        padding: 10px;
        margin: 0 5px 15px 5px;
        border-radius: 12px;
        gap: 10px;
    }
    
    .search-input-group {
        padding: 0 6px;
        border-radius: 8px;
        min-width: 100%;
        width: 100%;
    }
    
    .search-input {
        font-size: 12px;
        padding: 8px 0;
        width: 100%;
    }
    
    .filter-dropdowns {
        gap: 6px;
    }
    
    .filter-dropdown {
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 8px;
        background-position: right 10px center;
        background-size: 14px;
        padding-right: 32px;
    }
    
    .grant-card {
        padding: 12px;
        margin: 0 5px;
    }
    
    .grant-title {
        font-size: 15px;
    }
    
    .grant-description {
        font-size: 12px;
    }
    
    .detail-item {
        font-size: 11px;
        gap: 6px;
    }
    
    .detail-item img {
        width: 12px;
        height: 12px;
    }
    
    .eligible-applicants {
        gap: 6px;
    }
    
    .applicant-tag {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .subscribe-pay-btn,
    .eligible-apply-btn {
        position: static;
        display: block;
        width: 100%;
        margin-top: 10px;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 12px;
        text-align: center;
    }
    
    .category-tag {
        padding: 5px 8px;
        font-size: 11px;
        border-radius: 12px;
    }
    
    .tag-icon,
    .arrow-icon {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 350px) {
    .hero {
        height: 260px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.78rem;
    }
    
    .search-box {
        padding: 8px;
    }
    
    .search-input {
        font-size: 11px;
    }
    
    .filter-dropdown {
        font-size: 10px;
    }
    
    .grant-card {
        padding: 10px;
    }
    
    .grant-title {
        font-size: 14px;
    }
    
    .grant-description {
        font-size: 11px;
    }
    
    .detail-item {
        font-size: 10px;
    }
    
    .category-tag {
        font-size: 10px;
    }
    
    .applicant-tag {
        font-size: 9px;
    }
}

/* Landscape Mobile Responsiveness */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 250px;
        margin: 15px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-top: 10px;
    }
    
    .search-section {
        margin-top: -25px;
    }
    
    .search-box {
        padding: 20px;
        gap: 15px;
    }
    
    .filter-dropdowns {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .filter-dropdown {
        min-width: calc(50% - 7.5px);
    }
}


/* Grant Image Indicator */
.grant-image-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
}

.image-badge {
    background: rgba(255, 31, 113, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
}



/* Enhanced Grant Card Styles */
.grant-card .card-header {
    position: relative;
}

.grant-card .detail-item {
    margin-bottom: 8px;
}

.grant-card .detail-item:last-child {
    margin-bottom: 0;
}

/* Loading and Error States */
.loading-grants,
.no-grants,
.error-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.error-message {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #fecaca;
}

/* Not Found Container Styles */
.not-found-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
}

.not-found-logo-container {
    background: #f8f9fa;
    height: 144px;
    max-height: 112px;
    width: 144px;
    max-width: 112px;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.not-found-logo {
    height: 120px;
    width: 120px;
    filter: brightness(0) saturate(100%);
    object-fit: contain;
}

.not-found-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 0;
    font-family: 'Urbanist', sans-serif;
}

.not-found-description {
    font-family: 'Urbanist', sans-serif;
    color: #666;
    text-align: center;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Loading animation for logo container */
.not-found-logo-container.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments for not found container */
@media (max-width: 768px) {
    .not-found-logo-container {
        height: 112px;
        width: 112px;
        max-height: 112px;
        max-width: 112px;
    }
    
    .not-found-logo {
        height: 96px;
        width: 96px;
    }
    
    .not-found-title {
        font-size: 18px;
    }
    
    .not-found-description {
        font-size: 14px;
    }
}

/* Subscribe Pay Button */
.subscribe-pay-btn {
    position: absolute;
    bottom: 15px;
    left: 148px;
    background: linear-gradient(135deg, #FF1F71, #FF6B9D);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.subscribe-pay-btn:hover {
    background: linear-gradient(135deg, #FF6B9D, #FF1F71);
    transform: translateY(-2px);

}

.eligible-apply-btn {
    position: absolute;
    bottom: 15px;
    left: 28px;
    background: linear-gradient(135deg, #6B7280, #9CA3AF);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
    z-index: 10;
    opacity: 0.9;
}

.eligible-apply-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .grants-grid .grant-card .subscribe-pay-btn,
    .grants-grid .grant-card .eligible-apply-btn {
        position: static;
        left: auto;
        bottom: auto;
        width: 100%;
        margin-top: 12px;
        display: block;
        text-align: center;
    }

    .grants-grid .grant-card .eligible-apply-btn {
        margin-top: 8px;
    }

    .grants-grid .grant-card {
        padding-bottom: 24px;
    }
}
/* API Data Enhancements */
.grant-card .total-funding {
    font-weight: 600;
    color: #FF1F71;
}

.grant-card .grant-priority {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f59e0b;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}


main#wp--skip-link--target .wp-block-group .entry-content .grantsiren-container
 {
    margin: 0px !important;
    min-width: 100% !important;
}