/* Hinden Related Block Styles */

/* Common */
.h-related {
    margin: 30px 0;
}
.h-related-thumb img {
    max-width: 150px;
    height: auto;
    display: block;
}
.h-related-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}
.h-related-title a {
    text-decoration: none;
    color: #333;
}
.h-related-title a:hover {
    text-decoration: underline;
}
.h-related-meta {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Style 1: Beige border with arrow */
.h-related-style1 {
    position: relative;
    border: 1px solid #e2d9c8;
    border-radius: 6px;
    padding: 12px 15px;
    background: transparent;
}
.h-related-style1 .h-related-label {
    position: absolute;
    top: -14px;
    left: 20px;
    background: #fff;
    padding: 0 10px;
    color: #222;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}
.h-related-style1 .h-related-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}
.h-related-style1 .h-related-thumb img {
    max-width: 160px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
}
.h-related-style1 .h-related-content {
    flex: 1;
}
.h-related-style1 .h-related-title {
    font-size: 1.15rem;
    color: #2b50f6;
    font-weight: bold;
}
.h-related-style1 .h-related-author {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}
/* Style 2: Black bar */
.h-related-style2 {
    position: relative;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 20px;
    background: transparent;
}
.h-related-style2 .h-related-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #fff;
    padding: 0 10px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #000;
    display: flex;
    align-items: center;
}
.h-related-style2 .h-related-bar {
    width: 6px;
    height: 18px;
    background: #000;
    margin-right: 8px;
}
.h-related-style2 .h-related-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.h-related-style2 .h-related-thumb img {
    border-radius: 6px;
    max-width: 140px;
}
.h-related-style2 .h-related-title {
    color: #2b50f6;
    font-weight: bold;
    font-size: 1.15rem;
}

/* Style 3: News List */
.h-related-style3 {
    border-top: 1px solid #e2d9c8;
    border-bottom: 1px solid #e2d9c8;
    padding: 20px 0;
    background: transparent;
}
.h-related-style3 .h-related-header {
    font-size: 1.35rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 0 20px;
}
.h-related-style3 .h-related-header strong {
    color: #000;
    text-decoration: underline;
}
.h-related-style3 .h-related-list {
    display: flex;
    flex-direction: column;
}
.h-related-style3 .h-related-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px 20px;
    border-top: 1px solid #efebd8;
}
.h-related-style3 .h-related-list-item:first-child {
    border-top: none;
}
.h-related-style3 .h-related-thumb img {
    max-width: 120px;
}
.h-related-style3 .h-related-title {
    font-size: 1.1rem;
    color: #000;
}
.h-related-style3 .h-related-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin-top: 6px;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .h-related-style1 .h-related-inner,
    .h-related-style2 .h-related-inner,
    .h-related-style3 .h-related-list-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .h-related-style1 .h-related-thumb img,
    .h-related-style2 .h-related-thumb img,
    .h-related-style3 .h-related-thumb img {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    .h-related-style1 {
        padding-top: 20px;
    }
    
    .h-related-style1 .h-related-label {
        top: -12px;
    }
}
