/* ... existing code ... */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--light);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: #f3f4f6;
    color: var(--dark);
}

.modal-body {
    padding: 2rem;
}

.modal-carousel-container {
    margin-bottom: 2rem;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.modal-carousel {
    /* Reuse basic carousel styles but larger */
    height: 100%;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-description {
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
}

.detail-item strong {
    display: block;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.detail-item span {
    font-weight: 600;
    color: var(--dark);
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    text-align: center;
    width: 100%;
}

.cta-button:hover {
    background: #1d4ed8;
}

/* Add pointer to card to indicate clickability */
.card {
    cursor: pointer;
}

.view-details-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: block;
    width: 100%;
}

.view-details-btn:hover {
    background: var(--primary);
    color: white;
}