/* Modern CSS for Investments in India Website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #002f34;
    --secondary-color: #23e5db;
    --accent-color: #ffce32;
    --text-dark: #002f34;
    --text-light: #666;
    --bg-light: #f2f4f5;
    --white: #ffffff;
    --success: #00a650;
    --danger: #ff3838;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    top: 0;
    z-index: 1000;
}

@media (max-width: 768px) {
    .navbar {
        z-index: 10000;
    }
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

.nav-brand a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand i {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mobile-menu-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.mobile-menu-toggle:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    .nav-link.btn-primary {
        background-color: var(--secondary-color);
        color: var(--primary-color);
        font-weight: 600;
    }

        .nav-link.btn-primary:hover {
            background-color: var(--accent-color);
        }

    .nav-link.btn-logout {
        background-color: var(--danger);
    }

        .nav-link.btn-logout:hover {
            background-color: #cc2a2a;
        }

.nav-user {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d56 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

    .card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-4px);
    }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .form-control:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(35, 229, 219, 0.1);
    }

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.btn-secondary {
    background-color: var(--text-light);
    color: var(--white);
}

    .btn-secondary:hover {
        background-color: var(--text-dark);
    }

.btn-success {
    background-color: var(--success);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
    }

    .category-card i {
        font-size: 4rem;
        color: var(--secondary-color);
        margin-bottom: 1rem;
    }

    .category-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--primary-color);
    }

    .category-card p {
        color: var(--text-light);
    }

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Detail Page Styles */
.detail-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.detail-images-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.detail-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .detail-thumbnail:hover,
    .detail-thumbnail.active {
        border-color: var(--secondary-color);
        transform: scale(1.1);
    }

.detail-content-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.detail-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

    .info-item i {
        color: var(--secondary-color);
        font-size: 1.5rem;
        margin-top: 0.25rem;
    }

    .info-item strong {
        display: block;
        color: var(--text-dark);
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }

    .info-item p {
        margin: 0;
        color: var(--text-light);
    }

.detail-description {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

    .detail-description h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

    .detail-description p {
        color: var(--text-light);
        line-height: 1.8;
        white-space: pre-wrap;
    }

.detail-contact h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

    .contact-item i {
        color: var(--secondary-color);
        font-size: 1.5rem;
    }

    .contact-item strong {
        display: block;
        color: var(--text-dark);
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }

    .contact-item p {
        margin: 0;
        color: var(--text-light);
    }

/* Share Section Styles */
.share-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

    .share-section h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .share-section h3 i {
            color: var(--secondary-color);
        }

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .share-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        color: var(--white);
        text-decoration: none;
    }

    .share-btn i {
        font-size: 1.1rem;
    }

.share-facebook {
    background: #1877f2;
}

    .share-facebook:hover {
        background: #166fe5;
    }

.share-twitter {
    background: #1da1f2;
}

    .share-twitter:hover {
        background: #1a91da;
    }

.share-whatsapp {
    background: #25d366;
}

    .share-whatsapp:hover {
        background: #22c55e;
    }

.share-email {
    background: #ea4335;
}

    .share-email:hover {
        background: #d33b2c;
    }

.share-link {
    background: var(--secondary-color);
}

    .share-link:hover {
        background: #0056b3;
    }

.share-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

    .share-message.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .share-message.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

@media (max-width: 968px) {
    .detail-page {
        grid-template-columns: 1fr;
    }

    .detail-images-section {
        position: static;
    }

    .main-image-container {
        height: 400px;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

.requirement-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.requirement-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .requirement-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

.requirement-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.requirement-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.requirement-card:hover .requirement-main-image {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg-light);
}

    .image-placeholder i {
        font-size: 3rem;
        margin-bottom: 0.5rem;
        opacity: 0.5;
    }

.requirement-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Professional Image Gallery */
.image-gallery-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--white);
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease, opacity 0.3s ease;
    display: block;
}

    .gallery-main-image:hover {
        transform: scale(1.08);
        opacity: 0.95;
    }

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    overflow-x: auto;
    justify-content: center;
    flex-wrap: wrap;
}

    .gallery-thumbnails::-webkit-scrollbar {
        height: 4px;
    }

    .gallery-thumbnails::-webkit-scrollbar-track {
        background: var(--bg-light);
    }

    .gallery-thumbnails::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 2px;
    }

.gallery-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

    .gallery-thumbnail:first-child {
        border-color: var(--secondary-color);
        opacity: 1;
    }

    .gallery-thumbnail:hover {
        border-color: var(--secondary-color);
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        opacity: 1;
    }

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    margin-top: 5vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

    .lightbox-close:hover,
    .lightbox-close:focus {
        color: var(--secondary-color);
        text-decoration: none;
    }

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: var(--white);
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background-color: rgba(0, 0, 0, 0.8);
        color: var(--secondary-color);
    }

.requirement-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.requirement-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.requirement-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.requirement-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.requirement-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    align-items: center;
}

.requirement-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

    .requirement-detail i {
        color: var(--secondary-color);
    }

.requirement-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .requirement-price i {
        color: var(--success);
    }

.requirement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
}

.requirement-footer-left {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.requirement-share-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .share-icon-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        color: var(--white);
        text-decoration: none;
    }

    .share-icon-btn.share-facebook {
        background: #1877f2;
    }

        .share-icon-btn.share-facebook:hover {
            background: #166fe5;
        }

    .share-icon-btn.share-twitter {
        background: #1da1f2;
    }

        .share-icon-btn.share-twitter:hover {
            background: #1a91da;
        }

    .share-icon-btn.share-whatsapp {
        background: #25d366;
    }

        .share-icon-btn.share-whatsapp:hover {
            background: #22c55e;
        }

    .share-icon-btn.share-link {
        background: var(--secondary-color);
    }

        .share-icon-btn.share-link:hover {
            background: #0056b3;
        }

.requirement-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.status-active {
    background-color: #d4edda;
    color: var(--success);
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-rejected {
    background-color: #f8d7da;
    color: var(--danger);
}

.status-closed {
    background-color: #f8d7da;
    color: var(--danger);
}

.status-fulfilled {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Location Permission Prompt */
#locationPermissionPrompt {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Checkbox */
.form-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.form-checkbox:checked {
    background-color: var(--secondary-color);
}

.text-danger {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--secondary-color);
}

/* Table */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

tr:hover {
    background-color: var(--bg-light);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-section a:hover {
        color: var(--secondary-color);
    }

.footer-section p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

    .empty-state i {
        font-size: 4rem;
        color: var(--border-color);
        margin-bottom: 1rem;
    }

    .empty-state h3 {
        margin-bottom: 0.5rem;
        color: var(--text-dark);
    }

/* Responsive */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10001;
        transition: opacity 0.3s ease;
        pointer-events: none; /* Don't block clicks when inactive */
    }

    .mobile-menu-overlay.active {
        display: block;
        pointer-events: auto; /* Allow clicks when active (to close menu) */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        z-index: 10003;
        overflow-y: auto;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
        pointer-events: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-user {
        width: 100%;
        margin-bottom: 1rem;
    }

    .navbar .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-brand {
        flex: 1;
    }

    .mobile-menu-toggle {
        display: block !important;
        order: 2;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-menu {
        display: flex !important;
        pointer-events: auto;
    }
    
    .mobile-menu-overlay {
        pointer-events: auto;
        cursor: pointer;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .requirement-card-link {
        margin-bottom: 1rem;
    }

    .requirement-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .requirement-share-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .requirement-image-container {
        height: 200px;
    }

    .requirement-content {
        padding: 1rem;
    }

    .requirement-title {
        font-size: 1.1rem;
    }

    .requirement-description {
        font-size: 0.9rem;
    }

    .detail-page {
        grid-template-columns: 1fr;
    }

    .detail-images-section {
        margin-bottom: 2rem;
    }

    .main-image-container {
        height: 250px;
    }

    .thumbnail-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .detail-thumbnail {
        width: 60px;
        height: 60px;
    }

    .detail-content-section {
        padding: 1rem;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .card-header h2 {
        font-size: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-block {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    .table {
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .nav-brand a {
        font-size: 1.2rem;
    }

    .requirement-card {
        flex-direction: column;
    }

    .requirement-image-container {
        width: 100%;
        height: 200px;
    }

    .detail-main-image {
        height: 200px;
    }

    .main-image-container {
        height: 200px;
    }

    .card-header h2 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Interest Section */
.interest-section {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.interest-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.interest-section .form-group {
    margin-bottom: 1rem;
}

.interest-section .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.interest-section .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.interest-section .btn-block {
    width: 100%;
}

/* Current Images in Edit Page */
.current-image-item {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    background: var(--white);
    transition: transform 0.2s, box-shadow 0.2s;
}

.current-image-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.current-image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.current-image-item .btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}
