/* ===== BLOG SLIDER ===== */
.slider-img {
    height: 350px;       /* Slider height */
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
}

.carousel-caption h5 {
    font-size: 20px;
    font-weight: bold;
    margin: 5px 0 0 0;
}

.carousel-caption p {
    font-size: 14px;
    margin: 0;
}

/* ===== SIDE BLOGS ===== */
.side-blog,
.ad-block {
    overflow: hidden;
    display: block;
    position: relative;
    margin-bottom: 2px;
}

.side-blog img,
.ad-block img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.side-blog:hover img,
.ad-block:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
    cursor: pointer;
}

.side-blog .blog-category,
.blog-category {
    font-size: 14px;
    font-weight: 600;
    color: #f25a8a;
    margin-bottom: 3px;
}

.side-blog .blog-title a,
.blog-title a {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    line-height: 1.3;
}

.side-blog .blog-title a:hover,
.blog-title a:hover {
    color: #333;
    text-decoration: underline; /* hover underline effect */
}

/* ===== CARDS / GALLERY ===== */
.gallery-item,
.card {
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item .inner-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding: 10px;
    background: #fff;
}

.gallery-item .inner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.image-box img,
.card-img-top,
.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

/* ===== CATEGORY BANNER ===== */
.category-card {
    position: relative;
    display: block;
    overflow: hidden;
}

.category-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
}

.category-card .overlay h4 {
    color: #fff;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.category-card:hover img {
    transform: scale(1.05);
}

/* ===== SPACING ===== */
.row.g-3,
.row.g-2 {
    margin: 2px;
}

.row.g-3 > [class*="col-"],
.row.g-0 > [class*="col-"] {
    padding: 2px;
}

/* ===== LAYOUT CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== MAGAZINE GRID ===== */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.post-box img {
   width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
    /*border-radius: 6px;*/
}

.post-box:hover img {
    transform: scale(1.05);
}

.category {
    color: #f25a8a;
    font-size: 0.85rem;
    margin-top: 5px;
    margin-bottom: 0;
    text-transform: uppercase;
}

.title {
    font-weight: bold;
    line-height: 1.4;
    margin: 5px 0 10px;
}

.title a {
    text-decoration: none;
    color: #111;
}

.title a:hover {
    text-decoration: underline;
}

.post-box.large .title {
    font-size: 1.6rem;
}

.post-box.small .title {
    font-size: 1rem;
}

/* ===== SLIDER INDICATORS ===== */
.custom-indicators {
    position: static;
    margin-top: 10px;
    text-align: center;
}

.custom-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #bbb;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-indicators .active {
    background-color: #f25a8a;
    transform: scale(1.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }

    .side-column {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .side-column .post-box {
        flex: 1 1 48%;
    }

    .post-box.large .title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .slider-img {
        height: 250px;
    }

    .side-blog img,
    .ad-block img,
    .image-box img,
    .card-img-top,
    .category-card img {
        height: 150px;
    }

    .carousel-caption h5,
    .category-card .overlay h4 {
        font-size: 16px;
    }

    .side-blog .blog-title a,
    .blog-title a {
        font-size: 14px;
    }

    .blog-category {
        font-size: 12px;
    }

    .magazine-grid {
        display: block;
    }

    .side-column {
        width: 100%;
    }

    .post-box.small {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 12px;
    }
    

    .post-box.small img {
        width: 120px;
        height: 80px;
        margin-right: 12px;
        /*border-radius: 6px;*/
        object-fit: cover;
        flex-shrink: 0;
    }

    .post-box.small .text-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .post-box.small .category {
        font-size: 13px;
        color: #b00;
        margin: 0 0 4px 0;
    }

    .post-box.small .title {
        font-size: 14px;
        margin: 0;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .post-box.small .title a {
        color: #000;
        text-decoration: none;
    }

    .post-box.small .title a:hover {
        text-decoration: underline;
    }

    .side-blog {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
    }

    .side-blog img {
        width: 110px;
        height: 80px;
        margin-right: 12px;
    }

    .side-blog .blog-category {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .side-blog .blog-title {
        font-size: 14px;
        line-height: 1.4;
    }

    .col-md-6 {
        margin-bottom: 15px;
    }
}

/* ===== Large Screens ===== */
@media (min-width: 992px) {
    .blog-title {
        font-size: 2.5rem;
    }
}

.text-pink-600 {
    color: var(--color-pink-600);
}