/* ==========================================================================
   Sortiq Solutions - Blogs Stylesheet
   ========================================================================== */

/* Blog Page Wrapper */
.blog-page-wrapper {
    background-color: #ffffff;
    min-height: 100vh;
    font-family: 'Inter', 'Nunito', sans-serif;
}

.blog-container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .blog-container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .blog-container {
        flex-direction: row;
    }
}

/* Main Content Area */
.blog-main-content {
    flex: 1;
    order: 2;
}

@media (min-width: 1024px) {
    .blog-main-content {
        order: 1;
        width: 70%;
    }
}

/* Sidebar Area */
.blog-sidebar {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .blog-sidebar {
        order: 2;
        width: 30%;
    }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        gap: 2rem;
    }
}

/* Blog Card */
.blog-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: all 0.5s ease;
    overflow: hidden;
}

.blog-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.5rem);
    border-bottom-color: #0c5adb;
}

.blog-card-image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    background-color: transparent;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    transition: transform 0.7s ease;
}

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

.blog-card-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #ff6a00;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    z-index: 10;
}

.blog-card-content {
    padding: 1.5rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 300 !important;
    font-family: 'Raleway', 'Nunito', sans-serif !important;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.blog-card-meta i {
    font-size: 14px;
}

.blog-card-date {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00173e;
    margin-bottom: 0.75rem;
    line-height: 1.375;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
    transition: color 0.3s ease;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card:hover .blog-card-title {
    color: #ff6600;
}

.blog-card-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.625;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

/* Sidebar Components */
.blog-sidebar-widget {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.blog-sidebar-title {
    font-weight: 800;
    font-size: 1.125rem;
    color: #00142e;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-recent-post-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.blog-recent-post-dot {
    color: #ff6600;
    font-size: 1rem;
    line-height: 1;
    margin-top: 0.25rem;
}

.blog-recent-post-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    font-family: 'Nunito', sans-serif;
    transition: color 0.3s ease;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.375;
}

.blog-recent-post-item:hover .blog-recent-post-link {
    color: #1464db;
}

.blog-category-item {
    display: block;
}

.blog-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-category-link-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-category-dot {
    color: #ff6600;
    font-size: 1rem;
    line-height: 1;
}

.blog-category-count {
    background-color: #f9fafb;
    color: #9ca3af;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category-link:hover {
    color: #1464db;
}

.blog-category-item:hover .blog-category-count {
    background-color: #fff7ed;
    color: #ff6600;
}

/* Search Form */
.blog-search-form {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    display: flex;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 52px;
}

.blog-search-form:focus-within {
    box-shadow: 0 0 0 2px #ffedd5;
    border-color: #ff6600;
}

.blog-search-input {
    flex: 1;
    padding: 0.5rem 1.25rem;
    outline: none;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    height: 100%;
}

.blog-search-button {
    background-color: #ff6600;
    color: #ffffff;
    padding: 0 1.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.blog-search-button:hover {
    background-color: #ea580c;
}

/* Pagination */
.blog-pagination-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    justify-content: center;
    align-items: center;
}

.blog-page-item {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-page-item:not(.disabled):not(.active):hover {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #ffffff;
}

.blog-page-item.active,
.blog-page-item.active:hover {
    background-color: #00173e;
    border-color: #00173e;
    color: #ffffff;
}

.blog-page-item.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.blog-page-arrow {
    font-weight: 300;
    font-size: 1.5rem;
    font-family: sans-serif;
    color: #ff6600;
}

.blog-page-arrow:not(.disabled):hover {
    background-color: #00173e;
    border-color: #ff6600;
    color: #ffffff;
}

/* Individual Blog Show Page */
.blog-single-wrapper {
    background-color: #f9fafb;
    min-height: 100vh;
    padding-bottom: 5rem;
    font-family: 'Raleway', sans-serif;
}

.blog-single-container {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-back-link:hover {
    color: #ff6600;
}

.blog-single-article {
    padding-top: 0;
}

.blog-single-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-sizing: border-box !important;
    display: block !important;
    max-width: 100% !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    object-fit: cover;
}

.blog-single-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #2563eb;
    font-weight: 300 !important;
    font-family: 'Raleway', 'Nunito', sans-serif !important;
}

.blog-single-title {
    margin-top: 1rem;
    color: #000000;
    font-size: 1.75rem !important;
    line-height: 1.2;
    font-weight: 700 !important;
}

@media (min-width: 768px) {}

.blog-single-excerpt {
    margin-top: 1.25rem;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .blog-single-excerpt {
        font-size: 1rem;
    }
}

.blog-single-content {
    margin-top: 1.5rem;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.blog-single-content p {
    margin-bottom: 1.25rem;
    font-family: 'Raleway', 'Nunito', sans-serif;
    color: #4b5563;
    line-height: 1.8;
}

.blog-single-content h1,
.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4,
.blog-single-content h5,
.blog-single-content h6 {
    color: #000000 !important;
    font-family: 'Nunito', 'Inter', sans-serif;
    font-weight: 700 !important;
    font-size: 2.2rem !important;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.35;
}

.blog-single-content h1 {
    font-size: 1.85rem;
}

.blog-single-content h2 {
    font-size: 1.5rem;
}

.blog-single-content h3 {
    font-size: 1.3rem;
}

.blog-single-content h4 {
    font-size: 1.15rem;
}

.blog-single-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.blog-single-content a:hover {
    color: #ff6600;
    text-decoration: none;
}

.blog-single-content ul,
.blog-single-content ol {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-single-content ul {
    list-style-type: disc;
}

.blog-single-content ol {
    list-style-type: decimal;
}

.blog-single-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #4b5563;
}

.blog-single-content li p {
    margin-bottom: 0;
    display: inline;
}

.blog-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .blog-single-content {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .blog-single-content h1 {
        font-size: 1.6rem;
    }

    .blog-single-content h2 {
        font-size: 1.35rem;
    }

    .blog-single-content h3 {
        font-size: 1.2rem;
    }

    .blog-single-content h4 {
        font-size: 1.1rem;
    }
}

/* Share Section & Brand-colored Icons */
.blog-share-section {
    font-family: 'Inter', 'Nunito', sans-serif;
}

.blog-share-label {
    font-size: 1.125rem;
    font-weight: 800;
    color: #00173e;
}

.blog-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.blog-share-icon:hover {
    transform: scale(1.2);
}

.blog-share-icon--facebook {
    color: #3b5998;
}

.blog-share-icon--twitter {
    color: #1da1f2;
}

.blog-share-icon--linkedin {
    color: #0077b5;
}

.blog-share-icon--pinterest {
    color: #000000;
}

.blog-share-icon--gplus {
    color: #db4437;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

/* Blog Navigation Container & Inner columns */
.blog-navigation-container {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.blog-nav-arrow {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    transition: color 0.3s ease;
}

.blog-nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00173e;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.blog-navigation-container a {
    transition: all 0.3s ease;
}

.blog-navigation-container a:hover .blog-nav-title {
    color: #2563eb;
}

.blog-navigation-container a:hover .blog-nav-arrow {
    color: #ff6600;
}

@media (max-width: 767px) {
    .blog-navigation-container>div:first-child {
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}