/* ============================================================
   BLOG INDEX PAGE STYLES
   Page: resources/views/main/blog/index.blade.php
   Depends on global variables defined in style.css
   ============================================================ */

/* ============================================================
   WRAPPER – gradient background
   ============================================================ */
   .blog-container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}
   .blog-wrapper {
    background: linear-gradient(180deg, #f4f6fb 0%, #fff 40%);
    padding: 2.5rem 0;
}

/* ============================================================
   BLOG CARD – main entry card
   ============================================================ */

.blog-card {
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(16, 134, 202, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(16, 134, 202, 0.15);
}

.blog-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gradient-start, #1086CA), var(--primary-gradient-end, #0d6fa8));
    border-radius: 14px 14px 0 0;
}

/* ============================================================
   CARD IMAGE – container and image
   ============================================================ */

.blog-card-img-container {
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    flex-shrink: 0;
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.06);
}

/* ============================================================
   CARD METADATA – date, author, categories
   ============================================================ */

.blog-card-meta {
    font-size: 0.8rem;
    color: #888;
}

.blog-card-meta i {
    font-size: 0.78rem;
}

/* ============================================================
   CARD TITLE – main heading
   ============================================================ */

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.45;
    transition: color 0.18s ease;
}

/* ============================================================
   CARD EXCERPT – preview text
   ============================================================ */

.blog-card-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ============================================================
   READ MORE LINK – with hover slide effect
   ============================================================ */

.blog-read-more {
    font-size: 0.85rem;
    color: var(--primary-gradient-start, #1086CA);
    font-weight: 600;
    transition: gap 0.18s ease, color 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-read-more:hover {
    color: var(--primary-gradient-end, #0d5a8a);
    gap: 10px;
}

.blog-read-more i {
    font-size: 0.78rem;
    transition: transform 0.18s ease;
}

/* ============================================================
   SIDEBAR – search box, categories, recent posts
   ============================================================ */

.sidebar-box {
    border-radius: 14px;
    background: #fff;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

/* ============================================================
   SEARCH INPUT – with focus state
   ============================================================ */

.search-input {
	background-color: #ffffff;
	border-color: var(--primary-gradient-start, #1086CA);
    border-radius: 10px;
    padding: 10px 44px 10px 14px;
    border: 1px solid #dde3ea;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-gradient-start, #1086CA);
    box-shadow: 0 0 0 3px rgba(16, 134, 202, 0.12);
}

/* ============================================================
   CONTENT CARD – generic content container
   ============================================================ */

.content-card {
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(16, 134, 202, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

/* ============================================================
   PAGINATION – custom styling
   ============================================================ */

.blog-wrapper .pagination .page-link {
    border-radius: 8px !important;
    border: 1px solid #dde3ea;
    color: var(--primary-gradient-start, #1086CA);
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.blog-wrapper .pagination .page-link:hover {
    background: rgba(16, 134, 202, 0.08);
    border-color: var(--primary-gradient-start, #1086CA);
}

.blog-wrapper .pagination .page-item.active .page-link {
    background: var(--primary-gradient-start, #1086CA);
    border-color: transparent;
    color: #fff;
}

.blog-wrapper .pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================================
   RESPONSIVE: TABLET (≤768px)
   ============================================================ */

@media (max-width: 768px) {

    .blog-card-img {
        height: 175px;
    }

    .sidebar-box {
        padding: 1rem;
    }
}

/* ============================================================
   RESPONSIVE: MOBILE (≤576px)
   ============================================================ */

@media (max-width: 576px) {

    .blog-wrapper {
        padding: 1.5rem 0;
    }

    .blog-card-img {
        height: 155px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {

    .blog-wrapper {
        background: none;
        padding: 0;
    }
}