/*
|--------------------------------------------------------------------------
| Home page (index.php) — responsive layer
|--------------------------------------------------------------------------
| Loaded after style-13.css. Desktop keeps its look; the fixes mostly
| correct overflowing boxes and let columns stack cleanly on tablet/mobile.
*/

/* ---------- Welcome box + news slider ---------- */
.news-baord .left-content {
    height: auto !important;
    min-height: 100%;
    padding: 20px 20px 70px;
    margin-bottom: 0;
}

.news-baord .left-content p {
    margin-bottom: 0;
}

.news-baord .left-content a.read {
    bottom: 18px;
}

.news-baord .swiper-slide {
    height: 24rem;
    overflow: hidden;
}

.news-baord .main-slider-img img {
    height: 24rem;
}

.news-baord .swiper-slide .slide-content h3 {
    font-size: 1.15rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.news-baord .swiper-pagination {
    position: static;
    margin-top: 14px;
}

/* ---------- Indexing logos ---------- */
.mySwiper .swiper-slide {
    align-items: center;
    justify-content: center;
}

.mySwiper .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 8px;
}

.mySwiper .swiper-slide img {
    max-width: 100%;
}

/* ---------- Current issue articles ---------- */
.current-iise-left-side .article-text {
    padding-bottom: 0;
}

.current-iise-left-side .current-uuse-section {
    margin-left: 0;
    margin-right: 0;
    padding: 16px 0;
}

.current-iise-left-side .inner-current-img img {
    height: 140px;
    object-fit: cover;
}

.current-iise-left-side .panel-default.panel_issue .panel-heading .panel-title {
    -webkit-line-clamp: 3;
}

.current-iise-left-side .sub-buttons ul {
    display: block;
    margin-bottom: 10px;
}

.current-iise-left-side .sub-buttons ul li {
    display: block;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.current-iise-left-side .btn-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.current-iise-left-side .btn-list li {
    display: inline-flex;
    float: none;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.current-iise-left-side .btn-list li a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* "View more" sits under the list instead of floating at the bottom of the column. */
.current-iise-left-side .article-text .text-center {
    margin-top: 20px;
}

.current-iise-left-side a.read-more {
    position: relative;
    bottom: auto;
    right: auto;
    border-radius: 17px;
}

.current-iise-left-side a.read-more::before,
.current-iise-left-side a.read-more::after {
    display: none;
}

/* ---------- "Connecting you to the world's events" ---------- */
.slider-section .centeredBox h2 {
    height: auto !important;
    min-height: 2.6em;
    font-size: 28px;
}

.slider-section .col-border-new {
    margin: 0;
}

.slider-section .slider-img img {
    width: 100%;
    border-radius: 12px;
}

/* ---------- Tablet & below (< 992px) ---------- */
@media (max-width: 991.98px) {

    .news-baord {
        padding-block: 2rem;
    }

    .news-baord .swiper-slide,
    .news-baord .main-slider-img img {
        height: 20rem;
    }

    /* Sidebar goes under the articles as a two-column grid. */
    .home-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: start;
        margin-top: 30px;
    }

    .home-sidebar > fieldset,
    .home-sidebar > .sub_btn {
        grid-column: 1 / -1;
    }

    .home-sidebar > .big_block {
        margin-bottom: 0;
    }

    .home-sidebar .big_block .block_body {
        min-height: 0;
    }

    .home-sidebar .big_block_1 .block_body {
        max-height: 330px;
        overflow-y: auto;
    }

    .current-iise-left-side .current-uuse-section {
        display: flex !important;
        text-align: left;
    }

    .current-iise-left-side .article-text {
        padding-bottom: 0;
    }

    .slider-section {
        padding: 40px 0 70px !important;
    }

    .slider-section .col-border-new {
        padding: 22px;
        border-radius: 20px;
    }

    .slider-section .slider-img {
        padding-top: 0;
        margin-bottom: 18px;
    }

    .slider-section .slider-img img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 340px;
        margin: 0 auto;
        object-fit: contain;
    }

    .slider-section .centeredBox h2 {
        font-size: 24px !important;
    }
}

/* ---------- Mobile (< 768px) ---------- */
@media (max-width: 767.98px) {

    .news-baord .left-content {
        padding: 18px 16px 66px;
    }

    .news-baord .left-content p {
        text-align: left;
        font-size: 15px;
    }

    .news-baord .swiper-slide,
    .news-baord .main-slider-img img {
        height: 18rem;
    }

    .client-section {
        padding: 36px 0 20px;
    }

    .section-header h3 {
        font-size: 18px;
        line-height: 1.35;
    }

    .home-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .slider-section .centeredBox h2 {
        font-size: 20px !important;
    }

    .slider-section .col-border-new {
        padding: 16px;
    }

    .slider-section h3 {
        font-size: 18px;
    }

    .slider-section p,
    .slider-section h4 {
        text-align: left !important;
        font-size: 15px !important;
    }
}

/* ---------- Small phones (< 576px) ---------- */
@media (max-width: 575.98px) {

    /* Article image on top, details below. */
    .current-iise-left-side .current-uuse-section {
        display: block !important;
    }

    .current-iise-left-side .inner-current-img img {
        height: 190px;
    }

    .current-iise-left-side .btn-list li a {
        font-size: 12px;
        padding: 6px 8px;
    }
}
