/* Hide WordPress page title */
.entry-title,
.page-title,
h1.entry-title,
.post-title,
.page-header,
article > header,
.entry-header {
    display: none !important;
}

.qmsbf-profile {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.qmsbf-profile-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.qmsbf-profile-name {
    font-size: 42px;
    font-weight: 300;
    margin: 0 0 12px;
    color: #111827;
    letter-spacing: -0.5px;
}

.qmsbf-profile-description {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.qmsbf-profile-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.qmsbf-profile-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.qmsbf-profile-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.qmsbf-profile-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qmsbf-profile-section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #000000, #374151);
    border-radius: 2px;
}

.qmsbf-profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qmsbf-profile-info-item {
    display: flex;
    align-items: start;
    gap: 12px;
}

.qmsbf-profile-info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #6b7280;
}

.qmsbf-profile-info-content {
    flex: 1;
    color: #374151;
    line-height: 1.5;
}

.qmsbf-profile-info-content a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.qmsbf-profile-info-content a:hover {
    border-bottom-color: #000000;
}

.qmsbf-profile-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qmsbf-profile-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.qmsbf-profile-hours-row:last-child {
    border-bottom: none;
}

.qmsbf-profile-hours-day {
    font-weight: 500;
    color: #111827;
}

.qmsbf-profile-hours-time {
    color: #6b7280;
}

.qmsbf-profile-hours-closed {
    color: #ef4444;
}

.qmsbf-profile-map {
    grid-column: 1 / -1;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.qmsbf-profile-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.qmsbf-profile-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 14px;
}

.qmsbf-profile-footer a {
    color: #6b7280;
    text-decoration: none;
}

.qmsbf-profile-footer a:hover {
    text-decoration: underline;
}

.qmsbf-endpoint-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.qmsbf-endpoint-link:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    text-decoration: none !important;
}

.qmsbf-endpoint-link svg {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .qmsbf-profile {
        padding: 0 16px;
        margin: 30px auto;
    }
    
    .qmsbf-profile-header {
        margin-bottom: 40px;
        padding: 30px 20px;
    }
    
    .qmsbf-profile-content {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .qmsbf-profile {
        margin: 20px auto;
        padding: 0 12px;
    }
    
    .qmsbf-profile-header {
        margin-bottom: 30px;
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .qmsbf-profile-name {
        font-size: 28px;
    }
    
    .qmsbf-profile-description {
        font-size: 16px;
    }
    
    .qmsbf-profile-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .qmsbf-profile-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .qmsbf-profile-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .qmsbf-profile-map {
        height: 300px;
        border-radius: 12px;
    }
    
    .qmsbf-profile-footer {
        padding-top: 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .qmsbf-profile {
        margin: 12px auto;
        padding: 0 8px;
    }
    
    .qmsbf-profile-header {
        padding: 20px 12px;
        border-radius: 12px;
    }
    
    .qmsbf-profile-name {
        font-size: 24px;
    }
    
    .qmsbf-profile-description {
        font-size: 14px;
    }
    
    .qmsbf-profile-section {
        padding: 16px;
    }
    
    .qmsbf-profile-section h2 {
        font-size: 16px;
    }
    
    .qmsbf-profile-hours-row {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .qmsbf-profile-map {
        height: 250px;
    }
}
