/* ==========================================================================
   SZABLON MATERIAŁY DYDAKTYCZNE (category-materialy-dydaktyczne.php)
   ========================================================================== */

/* 1. Boks informacyjny (Nagłówek) */
.vm-edu-header {
    background-color: #f8f9fa; /* Jasnoszary */
    padding: 30px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid #eaeaea;
    text-align: center;
}

.vm-edu-header .page-title {
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.vm-edu-header a {
    color: #e30613; /* Czerwień VM */
    text-decoration: underline;
    font-weight: 600;
}

/* 2. Siatka wpisów */
.vm-edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* 3. Pojedyncza karta artykułu */
.vm-edu-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.vm-edu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* 4. Obrazek i data */
.vm-edu-card-media {
    position: relative;
    width: 100%;
    height: 220px; /* Stała wysokość obrazków dla spójności */
    overflow: hidden;
}

.vm-edu-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vm-edu-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 2;
}

/* 5. Treść wpisu */
.vm-edu-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vm-edu-card-content .entry-title {
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 15px;
}

.vm-edu-card-content .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vm-edu-card-content .entry-title a:hover {
    color: #e30613;
}

.vm-edu-card-content .entry-summary {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 6. Przycisk Czytaj Więcej */
.vm-edu-card-footer {
    margin-top: auto; /* Wypycha przycisk na sam dół karty */
}

.vm-edu-link {
    color: #e30613;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.vm-edu-link::after {
    content: '→';
    margin-left: 10px;
    width: 26px;
    height: 26px;
    border: 2px solid #e30613;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vm-edu-link:hover::after {
    background: #e30613;
    color: #ffffff;
}

/* Paginacja */
.vm-edu-pagination {
    margin-top: 40px;
    text-align: center;
}

.vm-edu-header .page-title {
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* Stylizacja boksu Disclaimer */
.vm-edu-disclaimer {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 25px 35px;
    margin: 0 auto;
    max-width: 850px; /* Zapobiega rozciąganiu na całą szerokość ekranu */
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Bardzo delikatny cień */
}

.vm-edu-disclaimer p {
    margin: 0;
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.8;
}

/* Czerwone, kropkowane linki Vital Medic */
.vm-edu-disclaimer a {
    color: #e30613; /* Czerwień VM */
    text-decoration: none;
    border-bottom: 1px dotted #e30613;
    transition: all 0.2s ease-in-out;
    padding-bottom: 2px;
}

.vm-edu-disclaimer a:hover {
    color: #b0050f; /* Ciemniejsza czerwień po najechaniu */
    border-bottom: 1px solid #b0050f; /* Zmiana na ciągłą linię przy hoverze */
}