/**
 * Layout: Textblock (Child Theme)
 * 
 * @package hca-ict
 */

#theme-child-textblock {
    position: relative;
}

#theme-child-textblock .textblock-content {
    line-height: 1.6;
}

#theme-child-textblock .textblock-content p {
    margin-bottom: 1rem;
}

#theme-child-textblock .textblock-content p:last-child {
    margin-bottom: 0;
}

#theme-child-textblock .textblock-content h1,
#theme-child-textblock .textblock-content h2,
#theme-child-textblock .textblock-content h3,
#theme-child-textblock .textblock-content h4,
#theme-child-textblock .textblock-content h5,
#theme-child-textblock .textblock-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

#theme-child-textblock .textblock-content h1:first-child,
#theme-child-textblock .textblock-content h2:first-child,
#theme-child-textblock .textblock-content h3:first-child,
#theme-child-textblock .textblock-content h4:first-child,
#theme-child-textblock .textblock-content h5:first-child,
#theme-child-textblock .textblock-content h6:first-child 
#theme-child-textblock .textblock-content p:first-child {
    margin-top: 0;
}

#theme-child-textblock .textblock-content ul,
#theme-child-textblock .textblock-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

#theme-child-textblock .textblock-content ul li,
#theme-child-textblock .textblock-content ol li {
    margin-bottom: 0.5rem;
}

#theme-child-textblock .textblock-content a {
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

#theme-child-textblock .textblock-content a:hover {
    opacity: 0.8;
}

#theme-child-textblock .textblock-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

#theme-child-textblock .textblock-content blockquote {
    border-left: 4px solid;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

#theme-child-textblock .button-wrapper {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    #theme-child-textblock .button-wrapper {
        flex-direction: column;
        width: 100%;
    }
    
    #theme-child-textblock .button-wrapper .button {
        width: 100%;
        text-align: center;
    }
}

