/* IR-IS medic - blog pages (blog*.php, blog-post*.php). Loaded only by the blog pages,
   after style.css / responsive.css. The rest of the site is not affected. */

/* ------------------------------------------------------------------
   1. The same small overrides the static pages have in their <head>
   ------------------------------------------------------------------ */
.color-blue { color: var(--brand) !important; }
.section-blue { background-color: var(--brand) !important; }
.header-area-v2 .header-top { border-bottom: 1px solid rgba(255, 255, 255, .08); }

.btn-intro,
.primary-btn,
.section-service-btn,
.quick-appoinment-form input[type="submit"] {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
}
.btn-intro:hover,
.primary-btn:hover,
.section-service-btn:hover,
.quick-appoinment-form input[type="submit"]:hover {
    background: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
}

/* language switch */
.lang-switch {
    display: inline-flex;
    gap: 8px;
    margin-left: 12px;
    vertical-align: middle;
}
.lang-switch a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    line-height: 1;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    opacity: .9;
}
.lang-switch a.active {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
    opacity: 1;
}

/* map iframe responsive */
.map-embed {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 8px;
}
@media (max-width: 767px) {
    .map-embed { height: 220px; }
}

/* ------------------------------------------------------------------
   2. Blog
   ------------------------------------------------------------------ */
.blog-section { background: #fff; }

/* page heading: looks like the site's .section-title h2, but is the page's h1 */
.blog-title-main {
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 25px;
    overflow-wrap: anywhere;
}

.blog-date {
    display: block;
    color: var(--brand, #CA6BA7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1.4;
    margin-bottom: 10px;
}
.blog-date .fa { margin-right: 6px; }

/* archive grid: 4 columns on wide screens, 2 on tablets, 1 on phones */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
}
.blog-card--no-image { border-top: 4px solid var(--brand, #CA6BA7); }

.blog-card__image {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f7f7f7;
}
.blog-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.05); }
@supports not (aspect-ratio: 1 / 1) {
    .blog-card__image { height: 200px; }
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 20px 22px 22px;
}
.blog-card__title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}
.blog-card__title a {
    display: inline;
    color: #4c4c4c;
}
.blog-card__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 18px;
    overflow-wrap: anywhere;
}
.blog-card__more {
    align-self: flex-start;
    margin-top: auto;
    color: var(--brand, #CA6BA7);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.blog-card__more .fa { margin-left: 4px; transition: transform .2s ease; }
.blog-card__more:hover .fa { transform: translateX(3px); }

.blog-empty {
    font-size: 16px;
    color: #666;
    margin: 10px 0 0;
}

/* pagination */
.blog-pagination { margin-top: 50px; }
.blog-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.blog-pagination a,
.blog-pagination li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e5e6e8;
    border-radius: 22px;
    background: #fff;
    color: #4c4c4c;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.blog-pagination a:hover,
.blog-pagination a:focus { border-color: var(--brand, #CA6BA7); }
.blog-pagination .is-current > span {
    background: var(--brand, #CA6BA7);
    border-color: var(--brand, #CA6BA7);
    color: #fff;
}
.blog-pagination .is-disabled > span { opacity: .45; }
.blog-pagination .is-gap > span {
    min-width: 0;
    padding: 0 2px;
    border-color: transparent;
}

/* article */
.blog-article__header { margin-bottom: 25px; }
.blog-article__title {
    font-size: 36px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.blog-article__image {
    margin: 0 0 35px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}
.blog-article__image img {
    display: block;
    width: 100%;
    height: auto;
}
.blog-article__body p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0 0 1.2em;
    overflow-wrap: anywhere;
}
.blog-article__footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e6e8;
}
.blog-article__footer .primary-btn .fa,
.blog-message .primary-btn .fa { margin-right: 6px; }

.blog-message__action { margin-top: 35px; }

/* long titles in the pink breadcrumb bar */
.breadcrumb-section .breadcrumb > .active { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------
   3. Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1199px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .blog-title-main { font-size: 25px; }
    .blog-article__title { font-size: 30px; }
}
@media (max-width: 767px) {
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-article__title { font-size: 25px; }
    .blog-article__body p { font-size: 15px; }
    .blog-pagination { margin-top: 35px; }
}
@media (max-width: 420px) {
    .blog-pagination__label { display: none; }
    .blog-pagination a,
    .blog-pagination li > span { min-width: 40px; height: 40px; padding: 0 12px; }
}
