
/* Blog Page Specific Styles */
:root {
    --blog-card-bg: #ffffff;
    --blog-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --blog-card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --accent-gradient: linear-gradient(135deg, var(--theme-color1), var(--theme-color3));
}

.blog-grid-section {
    padding: 80px 0;
    background: #f9fbff;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.category-btn {
    padding: 8px 24px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #eee;
    color: var(--theme-color1);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover, .category-btn.active {
    background: var(--theme-color2);
    color: #fff;
    border-color: var(--theme-color2);
    box-shadow: 0 5px 15px rgba(255, 73, 74, 0.3);
}

/* Blog Card */
.blog-card {
    background: var(--blog-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--blog-card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--blog-card-hover-shadow);
}

.blog-card .image-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-card .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .image-box img {
    transform: scale(1.1);
}

.blog-card .category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-color1);
    z-index: 2;
}

.blog-card .content-box {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #888;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    color: var(--theme-color2);
    font-size: 14px;
}

.blog-card .post-meta {
    margin-bottom: 15px;
    font-size: 13px;
}

.blog-card .title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--theme-color1);
    transition: color 0.3s ease;
}

.blog-card:hover .title {
    color: var(--theme-color2);
}

.blog-card .text {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--theme-color1);
    font-size: 14px;
    transition: gap 0.3s ease;
}

.blog-card:hover .read-more-link {
    gap: 12px;
    color: var(--theme-color2);
}

@media (max-width: 575px) {
    .featured-card {
        flex-direction: column;
    }
    .featured-card .content-col {
        padding: 20px;
    }
    .featured-card h2 {
        font-size: 24px;
    }
}

/* Header Logo Mobile Adjustment */
@media (max-width: 767px) {
    .logo-box img {
        max-width: 150px;
    }
}

.featured-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--blog-card-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 991px) {
    .featured-card {
        flex-direction: column;
    }
}

.featured-card .image-col {
    flex: 0 0 50%;
    position: relative;
    max-height: 450px;
}

.featured-card .content-col {
    flex: 0 0 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1199px) {
    .featured-card .content-col {
        padding: 30px;
    }
}

.featured-card .tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--theme-color2);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.featured-card h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* Sidebar styling for creative feel */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--blog-card-shadow);
    margin-bottom: 30px;
}


/* Pagination */
.blog-pagination {
    margin-top: 50px;
}

.pagination-list {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-list li a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    font-weight: 600;
    color: var(--theme-color1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pagination-list li.active a, .pagination-list li a:hover {
    background: var(--theme-color2);
    color: #fff;
}

/* Glassmorphism Hero */
.blog-hero {
    padding: 120px 0 100px;
    background: var(--accent-gradient);
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.blog-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.blog-hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.blog-hero h1 {
    color: #fff;
    font-size: 56px;
    margin-bottom: 20px;
}

.blog-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-bar-wrap {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
}

.search-bar-wrap input {
    background: transparent;
    border: none;
    padding: 10px 25px;
    color: #fff;
    flex-grow: 1;
    font-size: 16px;
}

.search-bar-wrap input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-bar-wrap button {
    background: #fff;
    color: var(--theme-color1);
    border-radius: 40px;
    padding: 10px 30px;
    font-weight: 700;
}

/* Blog Detail Styles */
.p-100 {
    padding: 100px 0;
}

.m-50 {
    margin: 50px 0;
}

.blog-detail-content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-detail-content h3 {
    font-size: 28px;
    margin-bottom: 25px;
}

.blog-detail-content h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--theme-color1);
}

.blog-detail-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.blog-detail-content ul, .blog-detail-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.blog-detail-content ul li, .blog-detail-content ol li {
    margin-bottom: 12px;
    position: relative;
    list-style: disc;
    font-size: 16px;
    color: #555;
}

.blog-footer-cta {
    background: #f8faff;
    padding: 40px;
    border-radius: 20px;
    border: 1px dashed var(--theme-color3);
    text-align: center;
}

.blog-footer-cta h4 {
    margin-bottom: 15px;
}

.blog-footer-cta p {
    margin-bottom: 25px;
}

.table-responsive {
    margin: 40px 0;
}

.table th {
    background: var(--theme-color1);
    color: #fff;
    font-weight: 600;
}

.table-bordered td, .table-bordered th {
    border: 1px solid #dee2e6;
    padding: 15px;
}

@media (max-width: 767px) {
    .blog-detail-section.p-100 {
        padding: 50px 0 !important;
    }
    .blog-detail-content h2 {
        font-size: 24px;
    }
    .page-title {
        padding: 60px 0 70px;
        min-height: auto;
    }
    .page-title .title {
        font-size: 32px !important;
    }
    .blog-footer-cta {
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    .blog-detail-section.p-100 {
        padding: 40px 15px !important;
    }
    .blog-detail-content h2 {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    .blog-detail-content h3 {
        font-size: 18px;
    }
    .blog-detail-content h4 {
        font-size: 17px;
    }
    .blog-detail-content .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
        margin-bottom: 30px;
    }
    
    /* Responsive Table Transformation */
    .table-responsive .table thead {
        display: none;
    }
    .table-responsive .table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 12px;
        overflow: hidden;
    }
    .table-responsive .table tbody tr td {
        display: block;
        width: 100% !important;
        border: none;
        padding: 12px 15px !important;
        text-align: left;
    }
    .table-responsive .table tbody tr td:first-child {
        background: #f9fbff;
        font-weight: 700;
        color: var(--theme-color1);
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }
}

/* Ultra Mobile Adjustments */
@media (max-width: 480px) {
    .page-title .title {
        font-size: 24px !important;
    }
    .blog-detail-content p {
        font-size: 15px;
    }
    .logo-box img {
        max-width: 130px;
    }
}

/* Ensure images in blog are responsive */
.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
