/* ===================================
   Blog Pages Styles
   ================================== */

/* Blog Hero Section */
.blog-hero {
    background-color: #1e3a8a;
    background-image: url("../images/services/fesability-study.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

/* Hero Overlay */
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.85) 0%,
            rgba(30, 58, 138, 0.8) 50%,
            rgba(59, 130, 246, 0.75) 100%);
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.blog-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Blog Listing Section
   ================================== */
.blog-listing-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.blog-listing-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Blog Grid - 3 columns */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.08);
    display: flex;
    flex-direction: column;
}

/* Removed hover transform effect */

/* Blog Card Image */
.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Removed hover image scale effect */

/* Category Badge */
.blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    z-index: 2;
}

/* Blog Card Content */
.blog-card-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Blog Meta Info */
.blog-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-meta-item i {
    color: #ff6b35;
    font-size: 0.85rem;
}

/* Blog Title */
.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Removed hover title color change */

/* Blog Excerpt */
.blog-card-excerpt {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Read More Button */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    align-self: flex-start;
}

.blog-read-more:hover {
    background: linear-gradient(135deg, #f7931e 0%, #e85a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    color: #ffffff;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(-5px);
}

/* ===================================
   Pagination
   ================================== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.blog-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #ffffff;
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.blog-pagination .page-link:hover,
.blog-pagination .page-link.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.blog-pagination .page-arrow {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
}

.blog-pagination .page-arrow:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

/* ===================================
   Blog Show Page - Article Detail
   ================================== */
.blog-article-section {
    padding: 4rem 0;
    background: #ffffff;
}

.blog-article-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Article Layout - Two Column Grid */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Main Content Area (Right Side - 8 columns) */
.article-main-content {
    min-width: 0;
    /* Prevents overflow */
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.08);
}

/* Article Header */
.article-header {
    background: #ffffff;
    padding: 2rem;
    border-bottom: 2px solid #f1f5f9;
    text-align: center;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: #6b7280;
    font-size: 1rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta-item i {
    color: #ff6b35;
}

/* Article Featured Image */
.article-featured-image {
    border-radius: 0;
    overflow: hidden;
    margin: 0 0 2rem 0;
    box-shadow: none;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    font-size: 1.15rem;
    line-height: 2;
    color: #374151;
    padding: 0 2rem 2rem 2rem;
}


.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin: 2rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-right: 4px solid #ff6b35;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    font-style: italic;
    color: #1e40af;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* ===================================
   Article Content - Tables Design
   ================================== */

/* Table Wrapper for scroll indicator */
.article-content .table-wrapper {
    position: relative;
    margin: 2.5rem 0;
    border-radius: 16px;
    overflow: hidden;
}

.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 10px 30px -5px rgba(30, 58, 138, 0.15);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

/* Table Header */
.article-content table thead {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%) !important;
    position: relative;
}

.article-content table thead tr {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%) !important;
}


.article-content table th {
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%) !important;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.15);

}

.article-content table th:last-child {
    border-left: none;
}

/* First column header - special styling */
.article-content table th:first-child {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
    font-weight: 800;
    font-size: 1.05rem;
}



/* Table Body */
.article-content table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.article-content table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.article-content table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.article-content table tbody tr:hover {
    background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 50%, #eff6ff 100%);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
}

/* First column (row label) - special styling */
.article-content table tbody td:first-child {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    font-weight: 700;
    color: #1e3a8a;
    border-right: 4px solid #ff6b35;
    position: relative;
}

.article-content table tbody tr:hover td:first-child {
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
    border-right-color: #f7931e;
}

/* Table Cells */
.article-content table td {
    padding: 1.15rem 1.5rem;
    text-align: center;
    font-size: 0.98rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    border-left: 1px solid #f1f5f9;
    line-height: 1.7;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.article-content table td:last-child {
    border-left: none;
}

.article-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Table with icons or special content */
.article-content table td i,
.article-content table td .fa,
.article-content table td svg {
    margin-left: 0.5rem;
    opacity: 0.8;
}

/* Table Caption */
.article-content table caption {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    font-weight: 600;
    color: #92400e;
    text-align: right;
    font-size: 1rem;
    border-bottom: 2px solid #f59e0b;
}

/* Responsive Tables */
@media (max-width: 900px) {

    /* Scroll hint indicator */
    .article-content table {
        display: block;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin: 2rem 0;
        border-radius: 12px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        position: relative;
        /* Custom scrollbar for visibility */
        scrollbar-width: thin;
        scrollbar-color: #ff6b35 #e5e7eb;
    }

    /* Webkit scrollbar styling */
    .article-content table::-webkit-scrollbar {
        height: 10px;
        background: #e5e7eb;
        border-radius: 5px;
    }

    .article-content table::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
        border-radius: 5px;
        border: 2px solid #e5e7eb;
    }

    .article-content table::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, #e85a2a 0%, #e88a1a 100%);
    }

    .article-content table::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 5px;
    }

    .article-content table th,
    .article-content table td {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        min-width: 160px;
        white-space: nowrap;
    }

    .article-content table th:first-child,
    .article-content table td:first-child {
        position: sticky;
        right: 0;
        z-index: 2;
        min-width: 130px;
    }

    .article-content table th:first-child {
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    }

    .article-content table td:first-child {
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .article-content table {
        margin: 1.5rem 0;
    }

    .article-content table th,
    .article-content table td {
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
        min-width: 140px;
    }

    .article-content table::-webkit-scrollbar {
        height: 8px;
    }
}

/* Share Section */
.article-share {
    margin: 0;
    padding: 2rem;
    border-top: 2px solid #f1f5f9;
    text-align: center;
}


.article-share h4 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #165ed0 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* ===================================
   Sidebar Styles (Left Side - 4 columns)
   ================================== */
.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sidebar Card */
.sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.08);
}

/* Sidebar Card Header */
.sidebar-card-header {
    background: #ffffff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-card-header i {
    font-size: 1.3rem;
    color: #ff6b35;
}

.sidebar-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #1e3a8a;
}

/* Sidebar Card Content */
.sidebar-card-content {
    padding: 1.5rem;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: #ffffff;
    font-size: 1.1rem;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.contact-value {
    font-size: 0.95rem;
    color: #1e3a8a;
    font-weight: 600;
    word-break: break-word;
}

.contact-value a,
a.contact-value {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover,
a.contact-value:hover {
    color: #ff6b35;
}

/* Sidebar CTA Button */
.sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.sidebar-cta-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #e85a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    color: #ffffff;
}

.sidebar-cta-btn i {
    font-size: 1rem;
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links li:last-child {
    margin-bottom: 0;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-links a:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    transform: translateX(-5px);
    border-color: #ff6b35;
}

.quick-links a i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.quick-links a:hover i {
    transform: translateX(-3px);
}


/* Related Articles */
.related-articles-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.related-articles-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-articles-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-articles-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    position: relative;
    display: inline-block;
}

.related-articles-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 2px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    grid-column: 1 / -1;
}

.blog-empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.blog-empty-state h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.blog-empty-state p {
    color: #64748b;
}

/* ===================================
   Responsive Design
   ================================== */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Sidebar adjustments for tablets */
    .article-layout {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }

    .sidebar-sticky {
        top: 80px;
    }
}

@media (max-width: 900px) {

    /* Stack sidebar below content on smaller screens */
    .article-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .article-sidebar {
        order: 2;
    }

    .article-main-content {
        order: 1;
        width: 100%;
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
    }

    .sidebar-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}


@media (max-width: 768px) {
    .blog-listing-section .container {
        padding: 0 1rem;
    }

    .blog-article-section .container {
        padding: 0 1rem;
    }

    .article-main-content {
        border-radius: 8px;
    }

    .sidebar-card {
        border-radius: 8px;
    }

    .blog-hero .hero-title {
        font-size: 2.2rem;
    }

    .blog-hero .hero-subtitle {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        width: 100%;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-card-title {
        font-size: 1.25rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .article-content {
        font-size: 1.05rem;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 6rem 0 3rem;
    }

    .blog-hero .hero-title {
        font-size: 1.8rem;
    }

    .blog-card-content {
        padding: 1.5rem;
    }

    .blog-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .blog-read-more {
        width: 100%;
        justify-content: center;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .share-buttons {
        gap: 0.75rem;
    }

    .share-btn {
        width: 45px;
        height: 45px;
    }
}