/* Custom Field HTML Headings Styles */

/* H3 Heading styles for custom fields */
.pt-cv-ctf-heading.h3,
h3.pt-cv-ctf-heading {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0.8em 0 0.5em 0;
    color: #333;
    line-height: 1.3;
}

/* H4 Heading styles for custom fields */
.pt-cv-ctf-heading.h4,
h4.pt-cv-ctf-heading {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0.7em 0 0.4em 0;
    color: #444;
    line-height: 1.3;
}

/* Link styles within headings */
.pt-cv-ctf-heading .pt-cv-ctf-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pt-cv-ctf-heading .pt-cv-ctf-link:hover {
    color: #0073aa;
    text-decoration: underline;
}

.pt-cv-ctf-heading .pt-cv-ctf-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .pt-cv-ctf-heading.h3,
    h3.pt-cv-ctf-heading {
        font-size: 1.1em;
        margin: 0.6em 0 0.4em 0;
    }
    
    .pt-cv-ctf-heading.h4,
    h4.pt-cv-ctf-heading {
        font-size: 1.05em;
        margin: 0.5em 0 0.3em 0;
    }
}

/* Dark theme support */
.dark-theme .pt-cv-ctf-heading.h3,
.dark-theme h3.pt-cv-ctf-heading {
    color: #e0e0e0;
}

.dark-theme .pt-cv-ctf-heading.h4,
.dark-theme h4.pt-cv-ctf-heading {
    color: #d0d0d0;
}

/* Integration with existing Content Views styles */
.pt-cv-wrapper .pt-cv-ctf-heading {
    font-family: inherit;
}

.pt-cv-wrapper .pt-cv-ctf-value .pt-cv-ctf-heading {
    margin-top: 0;
}