.dynamic-content-area {
    line-height: 1.7;
    font-size: 16px;
    color: #333;
    word-wrap: break-word;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 30px;
    max-width: 1200px;
    margin: 30px auto;
    align-items: start;
}

/* Прибираємо всі відступи, які редактор додає автоматично */
.usage-grid figure, 
.usage-grid h3, 
.usage-grid p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Стиль контейнера картинки */
.usage-grid figure.image {
    width: 100%;
    margin-top: 30px !important; /* Відступ між рядами */
}

.usage-grid figure.image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: 0.3s ease;
}

.usage-grid figure.image a:hover img {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Заголовок */
.usage-grid h3 a.usage-card {
    display: block;
    color: #333;
    font-size: 19px;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: 15px !important;
    line-height: 1.3;
    transition: 0.3s ease;
}

.usage-grid h3 a.usage-card:hover {
    color: #5da0d6;
}

/* Текст опису */
.usage-grid p a.usage-card {
    display: block;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none !important;
    margin-top: 8px !important;
    padding-bottom: 20px !important;
}

@media (max-width: 1024px) {
    .usage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .usage-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .usage-grid figure.image {
        margin-top: 20px !important;
    }
}

.dynamic-content-area table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.dynamic-content-area iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.usage-item-page {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin: 40px 0;
}

.usage-item-page figure.image {
    flex: 0 0 40%; /* Картинка займає 40% ширини */
    margin: 0 !important;
}

.usage-item-page figure.image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.usage-item-page .usage-content {
    flex: 1;
}

.usage-item-page h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.usage-item-page p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .usage-item-page {
        flex-direction: column;
        gap: 20px;
    }
    .usage-item-page figure.image {
        flex: 0 0 auto;
        width: 100%;
    }
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
    line-height: 1.8;
    font-size: 17px;
}

.article-container h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 3px solid #5da0d6;
    padding-bottom: 10px;
}

.article-container h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-top: 30px;
}

.article-container p {
    margin-bottom: 20px;
}

.highlight-box, .comparison-box {
    background-color: #f8f9fa;
    border-left: 5px solid #5da0d6;
    padding: 20px;
    margin: 30px 0;
    font-style: normal;
}

.comparison-box {
    border-left-color: #27ae60; 
    background-color: #f0f9f4;
}

.functions-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.functions-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%235da0d6"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat 0 6px;
    padding-left: 30px;
    margin-bottom: 15px;
}

.article-container strong {
    color: #2c3e50;
}

@media (max-width: 600px) {
    .article-container h1 { font-size: 28px; }
    .article-container { font-size: 16px; }
}
.img-left {
    float: left;
    width: 200px;
    margin: 0 20px 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.img-right {
    float: right;
    width: 220px;
    margin: 10px 0 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.img-comparison {
    float: right;
    width: 180px;
    margin: 0 0 10px 20px;
    border-radius: 5px;
}

@media (max-width: 600px) {
    .img-left, .img-right, .img-comparison {
        float: none;
        display: block;
        width: 100%;
        margin: 10px 0 20px 0;
    }
}

.certs-container {
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
}

.certs-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
}

.certs-container h2 {
    color: #5da0d6;
    padding-left: 15px;
    margin: 40px 0 20px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cert-item {
    text-align: center;
    background: #f9f9f9;
    padding: 10px;
    transition: 0.3s;
}

.cert-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 2;
}

.cert-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 4px;
}

.cert-item p {
    font-size: 13px;
    margin-top: 10px;
    color: #666;
}

.cert-item a, .info-img a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* Ефект затемнення та іконка при наведенні */
.cert-item a::after {
    content: '🔍'; /* Символ лупи */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: 0.3s;
}

.cert-item a:hover::after {
    opacity: 1;
}

/* Плавне збільшення самої картинки всередині рамки */
.cert-item img {
    transition: transform 0.5s ease;
}

.cert-item a:hover img {
    transform: scale(1.1);
}

/* Окремий стиль для великої картинки PDR */
.info-img a:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.info-flex {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
}

.info-img img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
}

.halal-box {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
}

.halal-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.halal-logos img {
    height: 80px;
    width: auto;
}

@media (max-width: 768px) {
    .info-flex { flex-direction: column; text-align: center; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}