/* File: dcg-style.css */
/* Purpose: Styles for Dynamic Cards Grid plugin with support for dynamic card style settings */

/* ============================= */
/* Dynamic Cards Grid - Styles */
/* ============================= */

/*настройка кнопки и выпадающего списка валют*/
.dcg-button-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.dcg-currency-select {
    min-width: 90px;
}


/*текст "далее..."*/
.dcg-title-toggle {
    display: inline;
    margin-left: 6px;
    color: #0057b7;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
/*текст "свернуть скрытый текст"*/
.dcg-collapse {
    color: #0057b7;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;

    font-size: 18px;        /* ← увеличили */
    font-weight: 500;       /* ← чуть плотнее */
}

.dcg-collapse:hover {
    color: #f2b705;
}

.dcg-collapse:hover {
    color: #f2b705;
}

.dcg-title-toggle:hover {
    color: #f2b705;
}

.dcg-grid {
    display: grid;
    grid-template-columns: repeat(var(--dcg-columns), 1fr);
    gap: 20px;
}
/* tablet */
@media (max-width: 1024px) {

.dcg-grid {
    grid-template-columns: repeat(2, 1fr);
}

}

/* mobile */
@media (max-width: 600px) {

.dcg-grid {
    grid-template-columns: 1fr;
}

}

.dcg-wrapper {
    margin: 40px 0;
}

/* GRID */

.dcg-grid {
    display: grid;
    gap: 30px;
    align-items: stretch;
}
@media (max-width: 600px) {

.dcg-card {
    padding: 16px;
}

.dcg-content-text {
    font-size: 14px;
	font-family: inherit;
	font-style: inherit;
}

}
/* CARD */

.dcg-card {
    background: var(--dcg-card-bg, #ffffff);

    border-width: var(--dcg-card-border-width, 1px);
    border-style: var(--dcg-card-border-style, solid);
    border-color: var(--dcg-card-border-color, #666);

    border-radius: var(--dcg-card-border-radius, 20px);

    padding: var(--dcg-card-padding, 20px);

    display: flex;
    flex-direction: column;
    height: 100%;
	width: 100%;
    box-sizing: border-box;
}

.dcg-body {
    flex-grow: 1;
}

/* IMAGE */

.dcg-image {
    position: relative;
    height: var(--dcg-thumb-height);
    margin-bottom: 15px;
}

.dcg-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    max-height: 100%;
    max-width: 100%;

    width: auto !important;
    height: auto !important;
}

/* LINK BUTTON */

.dcg-link {
	position: relative;
    z-index: 1;
    margin-top: auto;
    align-self: center;
    display: inline-block;
    border: 1px solid #0057b7;
    border-radius: 10px;
    padding: 10px 16px;
    color: #ffffff !important;
    background-color: #154c9c;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none !important;
    text-align: center;
}

.dcg-link:hover {
    border: 1px solid #f2b705;
    background-color: #f2b705;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* HIDDEN CARDS */

.dcg-hidden {
    display: none;
}

/* BUTTOM LOAD MORE */

.dcg-load-more {
    margin-top: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* EXCERPT */

.dcg-excerpt {
    font-size: var(--dcg-excerpt-size);
    font-weight: var(--dcg-excerpt-weight);
    text-align: var(--dcg-excerpt-align);
    margin-bottom: 10px;
}

/* TITLE */

.dcg-title {
    font-size: var(--dcg-title-size);
    font-weight: var(--dcg-title-weight);
    text-align: var(--dcg-title-align);
    margin: 5px 0 10px 0;
	font-size: 18px;
	font-family: 'Roboto';
}
/*CONTENT*/
.dcg-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 10px;
    flex-grow: 1;

    font-size: var(--dcg-content-size);
    font-weight: var(--dcg-content-weight);
    text-align: var(--dcg-content-align);
}

.dcg-card.active .dcg-content {
    max-height: 1000px;
	display: block;
}
