/*
 Theme Name:   Notariat OceanWP Child
 Theme URI:    https://example.com/oceanwp-child/
 Description:  Дочірня тема для OceanWP
 Author:       Yrii
 Author URI:   https://example.com
 Template:     oceanwp
 Version:      1.0.0
*/

/* Тут можна додавати свій CSS */

.custom-date-box {
    display: inline-flex;
    align-items: center;
    background-color: #22769F;
    color: #fff;
    border: 2px solid #17366a;
    border-radius: 6px;
    padding: 5px 5px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
}
.custom-date-icon {
    background-color: #132b55;
    padding: 5px;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-date-text {
    font-weight: 500;
}


/* Контейнер усіх новин */
.npu-news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
	
}

/* Один блок новини */
.npu-news-item {
	display: flex;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    padding: 0;
}

/* Зображення */
.npu-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контент */
.npu-news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Заголовок, дата, опис */
.npu-news-date {
    font-size: 14px;
    color: #888;
}

.npu-news-title a {
    color: #222;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.npu-news-excerpt {
    color: #555;
    font-size: 15px;
    margin: 10px 0 15px;
}

.npu-news-button {
    display: inline-block;
    background: #004a9f;
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.npu-news-button:hover {
    background: #00387a;
}

/* Адаптив для мобільних */
@media (max-width: 768px) {
    .npu-news-item {
        grid-template-columns: 1fr;
    }

    .npu-news-thumb img {
        height: 220px;
    }
}
