/* ????? ???? ????????? */
.advertisements-container {
    margin-top: 80px;
    padding-bottom: 50px;
}

.search-box {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .search-box input {
        border: none;
        padding: 10px 20px;
        flex-grow: 1;
    }

    .search-box button {
        border: none;
        background: var(--unhcr-blue);
        color: white;
        padding: 0 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .search-box button:hover {
            background: var(--unhcr-dark-blue);
        }

.ad-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid #eee;
}

    .ad-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .ad-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .ad-card.main-ad {
        border-left: 5px solid var(--unhcr-blue);
    }

    .ad-card .card-img-top {
        height: 200px;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
    }

    .ad-card .card-body {
        padding: 20px;
    }

    .ad-card .card-title {
        color: var(--unhcr-dark-blue);
        margin-bottom: 10px;
    }

    .ad-card .card-text {
        color: #555;
        margin-bottom: 15px;
    }

.ad-date {
    color: var(--unhcr-blue);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.ad-views {
    color: #777;
    font-size: 0.8rem;
}

.read-more {
    color: var(--unhcr-blue);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .read-more:hover {
        color: var(--unhcr-dark-blue);
        text-decoration: underline;
    }

/* ????? ???? ???????? */
.advertisement-details {
    margin-top: 80px;
    padding-bottom: 50px;
}

.ad-detail-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.ad-detail-header {
    margin-bottom: 30px;
    text-align: center;
}

    .ad-detail-header h2 {
        color: var(--unhcr-dark-blue);
        margin: 15px 0;
    }

.ad-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #777;
    margin-bottom: 20px;
}

.ad-detail-image {
    margin-bottom: 30px;
}

    .ad-detail-image img {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
    }

.ad-detail-content h3 {
    color: var(--unhcr-dark-blue);
    margin: 25px 0 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.ad-detail-content ul,
.ad-detail-content ol {
    padding-right: 20px;
    margin-bottom: 20px;
}

.ad-detail-content li {
    margin-bottom: 8px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.ad-detail-files {
    margin: 30px 0;
}

.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

    .file-item:hover {
        background: #f0f0f0;
    }

    .file-item i {
        margin-left: 10px;
        font-size: 1.2rem;
    }

        .file-item i.fa-file-pdf {
            color: #d63031;
        }

        .file-item i.fa-file-word {
            color: #2b579a;
        }

    .file-item small {
        margin-right: auto;
        color: #777;
    }

.ad-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .share-buttons span {
        color: #777;
    }

.related-ads h3 {
    color: var(--unhcr-dark-blue);
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* ??????? ????? ??? ??????? ???????? */
@media (max-width: 768px) {
    .ad-detail-footer {
        flex-direction: column;
        gap: 15px;
    }

    .share-buttons {
        width: 100%;
        justify-content: center;
    }

    .ad-card .card-img-top {
        height: 150px;
    }
}
