/* Project List Styling */

/* Location Filter Styles */
.location-filter-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.location-dropdown-wrapper {
    position: relative;
    min-width: 200px;
}

.location-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
}

.location-dropdown-btn:hover {
    border-color: #ff4c4b;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.location-dropdown-btn.active {
    border-color: #ff4c4b;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.location-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    min-width: 320px;
}

.location-dropdown-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.location-option:last-child {
    border-bottom: none;
}

.location-option:hover {
    background: #f8f9fa;
}

.location-option.selected {
    background: #f0f8ff45;
    color: #000000;
    font-weight: 500;
}

/* Enhanced Location Search Styles */
.location-search-wrapper {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.location-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.location-search-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #6c757d;
    z-index: 1;
}

.location-search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.location-search-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.location-search-input::placeholder {
    color: #9ca3af;
}

/* Location Section Styles */
.location-section {
    padding: 0;
}

.location-section-header {
    padding: 12px 16px 8px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 60px;
    z-index: 9;
}

.location-options-list {
    max-height: 250px;
    overflow-y: auto;
}

/* Popular countries styling */
.location-option.popular {
    background: #fff8f045;
    font-weight: 500;
}

.location-option.popular:hover {
    background: #fff3e6;
    color: #000000;
}

/* Hidden state for filtered options */
.location-option.hidden {
    display: none;
}

/* No results state */
.no-results {
    padding: 20px 16px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* Enhanced scrollbar for dropdown */
.location-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

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

.location-dropdown-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.location-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.selected-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    align-items: flex-start;
}

.selected-location-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
    transition: all 0.3s ease;
}

.selected-location-tag:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.remove-location {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.remove-location:hover {
    color: #dc3545;
    background: #fff5f5;
}

/* Enhanced Loading States */
.projects-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6c757d;
    font-family: "DM Sans", sans-serif;
    text-align: center;
}

.projects-loading::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid #e5e5e5;
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 16px;
}

/* Enhanced No Results State */
.no-results-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
    margin: 20px 0;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: #9ca3af;
}

.no-results-icon svg {
    width: 100%;
    height: 100%;
}

.no-results-title {
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

.no-results-message {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
    max-width: 400px;
    line-height: 1.5;
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Skeleton Loading States */
.skeleton-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-title {
    width: 80%;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-text {
    width: 60%;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-button {
    width: 100px;
    height: 36px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-top: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Project List Header */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.projects-results-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-count {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.projects-view-options {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e5e5e5;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-btn svg {
    width: 18px;
    height: 18px;
    color: #666;
}

.view-btn.active {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-btn.active svg {
    color: #000;
}

.view-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

/* Enhanced Search Field */
.search-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.search-clear-btn:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
}

.search-clear-btn svg {
    width: 14px;
    height: 14px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.search-suggestion-item:hover {
    background: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Project Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1102px;
    transition: all 0.3s ease;
}

.projects-grid.grid-layout {
    grid-template-columns: repeat(3, 1fr);
}

.projects-grid.list-layout {
    grid-template-columns: 1fr;
    gap: 16px;
}

.projects-grid.list-layout .project-card {
    flex-direction: row;
    height: auto;
    min-height: 160px;
}

.projects-grid.list-layout .project-image-container {
    width: 200px;
    height: 160px;
    flex-shrink: 0;
}

.projects-grid.list-layout .project-card-content {
    flex: 1;
    height: auto;
    padding: 20px;
}

/* Project Card */
.project-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    width: 100%;
    height: auto;
    min-height: 420px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

.project-card:hover .project-card-arrow {
    transform: translateX(5px);
}

.project-card:hover .view-project-btn {
    background: #000;
    color: white;
}

.project-card:hover .project-category-badge {
    transform: translateY(-2px);
}

/* Project Image Container */
.project-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
    overflow: hidden;
}

.project-image {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #333;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Project Content Container */
.project-card-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
    width: 100%;
    flex: 1;
}

/* Project Text Content */
.project-text-wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 12px;
    width: 100%;
    flex: 1;
}

.project-description {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.project-posted {
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    color: #999;
    font-weight: 500;
}

.project-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

/* Project Category - moved to badge overlay */

/* Project Title and Location */
.project-title-location {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
    height: 72px;
}

.project-card-title {
    width: 100%;
    font-family: "DM Sans", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Project Location */
.project-card-location-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 6px;
    width: 100%;
    height: 20px;
}

.project-card-location-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-location-text {
    font-family: "DM Sans", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-feature-settings: "ss01" on;
    color: #777777;
}

/* View Project Button and Arrow */
.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-project-btn:hover {
    background: #000;
    color: white;
    border-color: #000;
    text-decoration: none;
}

.view-project-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.project-card-arrow {
    transition: transform 0.3s ease;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .projects-grid.grid-layout {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 20px;
    }

    .projects-content-container {
        padding: 0 20px;
    }

    .projects-row {
        gap: 30px;
    }

    .filter-container {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .projects-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 20px;
    }
    .project-category-badge {
        font-size: 8px;
    }

    .projects-view-options {
        align-self: flex-end;
    }

    .projects-grid.list-layout .project-image-container {
        width: 150px;
        height: 120px;
    }

    .projects-grid.list-layout .project-card-content {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .projects-row {
        flex-direction: column;
        gap: 20px;
    }

    .filter-container {
        width: 100%;
        position: static;
        margin-bottom: 20px;
        order: -1;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 16px;
    }

    .projects-grid.list-layout .project-card {
        flex-direction: column;
        min-height: auto;
    }

    .projects-grid.list-layout .project-image-container {
        width: 100%;
        height: 200px;
    }

    .project-card-title {
        font-size: 16px;
        line-height: 1.4;
    }

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

    .projects-header {
        padding: 0 8px;
    }

    .projects-content-container {
        padding: 0 16px;
    }

    .view-toggle {
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .project-card {
        min-height: 380px;
    }

    .project-image-container {
        height: 180px;
    }

    .project-card-content {
        padding: 16px;
        gap: 12px;
    }

    .project-title-location {
        gap: 6px;
    }

    .project-card-title {
        font-size: 15px;
    }

    .project-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .view-project-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .view-project-btn svg {
        width: 14px;
        height: 14px;
    }

    .projects-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .projects-view-options {
        align-self: center;
    }

    .results-count {
        text-align: center;
        font-size: 13px;
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    #categoryForm {
        width: -webkit-fill-available;
    }
    /* Hero Section Mobile */
    .projects-hero-section {
        padding: 40px 20px;
        text-align: center;
    }

    .projects-hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }

    .projects-hero-description {
        font-size: 16px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }

    /* Filter Container Mobile */
    .projects-filter-container {
        padding: 20px 16px;
        background: #f8f9fa;
        border-radius: 0;
        margin: 0;
    }

    .projects-filter-container-inner {
        max-width: 100%;
        padding: 0;
    }

    .projects-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
        text-align: center;
    }

    /* Location Filter Mobile */
    .location-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        margin-bottom: 20px;
    }

    .location-dropdown-wrapper {
        min-width: auto;
        width: 100%;
    }

    .location-dropdown-btn {
        min-width: auto;
        width: 100%;
        padding: 14px 16px;
        font-size: 15px;
        justify-content: space-between;
    }

    .location-dropdown-content {
        min-width: auto;
        width: 100%;
        left: 0;
        right: 0;
        max-height: 300px;
    }

    .selected-locations {
        margin-top: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .selected-location-tag {
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }

    /* Search Form Mobile */
    .projects-search-form {
        width: 100%;
    }

    .projects-search {
        width: 100%;
    }

    .projects-search-field {
        width: 100%;
    }

    .projects-search-content {
        width: 100%;
        position: relative;
    }

    .projects-search-input {
        width: 100%;
        padding: 14px 16px 14px 48px;
        font-size: 15px;
        border-radius: 8px;
    }

    .projects-search-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .search-clear-btn {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    /* Filter Container Mobile */
    .filter-container {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .filter-title {
        font-size: 18px !important;
        margin-bottom: 16px !important;
        text-align: center;
    }

    /* Category Filter Mobile */
    .collapsable-tab {
        margin-bottom: 16px;
    }

    .collapsable-tab-heading {
        padding: 12px 0;
    }

    .collapsable-tab-text {
        font-size: 14px !important;
    }

    .category-search-wrapper {
        margin-bottom: 12px;
        width: -webkit-fill-available;
    }

    .category-search-input {
        padding: 12px 16px 12px 40px;
        font-size: 14px;
    }

    .category-item {
        padding: 12px 0;
    }

    .checkbox-text {
        font-size: 14px !important;
    }

    .category-count {
        font-size: 12px !important;
    }

    .category-actions {
        margin-top: 16px;
        width: -webkit-fill-available;
        padding-top: 16px;
        border-top: 1px solid #e5e5e5;
    }

    .clear-categories-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
    }

    .categories-summary {
        text-align: center;
        margin-top: 8px;
    }

    .categories-total {
        font-size: 13px !important;
    }

    /* Projects Header Mobile */
    .projects-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 20px;
        padding: 0;
    }

    .projects-results-info {
        justify-content: center;
    }

    .results-count {
        font-size: 14px;
        text-align: center;
    }

    .projects-view-options {
        justify-content: center;
    }

    .view-toggle {
        background: #f1f3f4;
        border: 1px solid #dadce0;
    }

    .view-btn {
        padding: 10px 14px;
    }

    .view-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Project Cards Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }

    .project-card {
        min-height: auto;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .project-image-container {
        height: 200px;
    }

    .project-card-content {
        padding: 16px;
        gap: 12px;
    }

    .project-title-location {
        height: auto;
        min-height: 60px;
    }

    .project-card-title {
        font-size: 16px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .project-card-location-text {
        font-size: 13px;
    }

    .project-description {
        font-size: 14px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .project-meta {
        margin-top: 8px;
    }

    .project-posted {
        font-size: 8px;
    }

    .project-card-actions {
        margin-top: 12px;
    }

    .view-project-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
    }

    .view-project-btn svg {
        width: 18px;
        height: 18px;
    }

    /* No Results Mobile */
    .no-results-container {
        padding: 60px 20px;
        margin: 20px 0;
        border-radius: 12px;
    }

    .no-results-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .no-results-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .no-results-message {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .clear-filters-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Pagination Mobile */
    .pagination-container {
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }

    .pagination {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-link {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 8px;
        min-width: 40px;
        text-align: center;
    }

    /* Content Container Mobile */
    .projects-content-container {
        padding: 0 16px;
        max-width: 100%;
    }

    .projects-row {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .projects-hero-section {
        padding: 30px 16px;
    }

    .projects-hero-title {
        font-size: 24px !important;
    }

    .projects-hero-description {
        font-size: 15px !important;
    }

    .projects-filter-container {
        padding: 16px;
    }

    .projects-title {
        font-size: 22px !important;
    }

    .location-dropdown-btn {
        padding: 12px 14px;
        font-size: 14px;
    }

    .location-dropdown-content {
        max-height: 250px;
    }

    .location-option {
        padding: 10px 14px;
        font-size: 13px;
    }

    .selected-location-tag {
        padding: 6px 10px;
        font-size: 12px;
    }

    .remove-location {
        width: 16px;
        height: 16px;
    }

    .projects-search-input {
        padding: 12px 14px 12px 44px;
        font-size: 14px;
    }

    .filter-container {
        padding: 16px;
        border-radius: 8px;
    }

    .filter-title {
        font-size: 16px !important;
    }

    .project-card {
        border-radius: 8px;
    }

    .project-image-container {
        height: 180px;
    }

    .project-card-content {
        padding: 14px;
    }

    .project-card-title {
        font-size: 15px;
    }

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

    .view-project-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .no-results-container {
        padding: 40px 16px;
    }

    .no-results-title {
        font-size: 18px;
    }

    .no-results-message {
        font-size: 13px;
    }

    .clear-filters-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    /* Very Small Mobile */
    .projects-hero-title {
        font-size: 22px !important;
    }

    .projects-hero-description {
        font-size: 14px !important;
    }

    .projects-title {
        font-size: 20px !important;
    }

    .project-card-title {
        font-size: 14px;
    }

    .project-description {
        font-size: 12px;
    }

    .view-project-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .view-project-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Accessibility Enhancements */
.custom-checkbox:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    border-color: #000000;
}

.view-project-btn:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.view-btn:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.location-dropdown-btn:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.clear-filters-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .project-card {
        border-width: 2px;
        border-color: #000000;
    }

    .custom-checkbox {
        border-width: 2px;
        border-color: #000000;
    }

    .view-project-btn {
        border-width: 2px;
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .project-card,
    .custom-checkbox,
    .view-project-btn,
    .project-image,
    .project-category-badge {
        transition: none;
        transform: none;
        animation: none;
    }

    .projects-grid {
        transition: none;
    }
}

/* Print styles */
@media print {
    .filter-container,
    .projects-header,
    .pagination-container {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .view-project-btn {
        min-height: 44px;
    }

    .view-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .location-option {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .custom-checkbox {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-clear-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .remove-location {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .projects-hero-section {
        padding: 20px 16px;
    }

    .projects-hero-title {
        font-size: 24px !important;
    }

    .projects-hero-description {
        font-size: 14px !important;
    }

    .project-image-container {
        height: 160px;
    }

    .project-card-content {
        padding: 12px;
    }
}
