﻿body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    overflow-y: hidden !important;
}

* {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 3px;
    justify-content: center;
    overflow-y: hidden;
}

.page-content, .blog-item, .navbar {
    padding: 1px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
    padding: 5px;
    flex-direction: row;
    justify-content: space-between;
}

    .row a, .row button {
        width: auto;
        display: inline-block;
        text-align: center;
    }

.col-md-3 {
    flex: 1;
    min-width: 230px;
}
    .col-md-3 .content {
        margin-bottom: 8px;
        padding: 5px;
        background: white;
        border-radius: 8px;
        box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.08);
    }

.col-md-9 {
    flex: 3;
    min-width: 280px;
}
    .col-md-9 .content {
        margin-bottom: 8px;
        padding: 5px;
        border-radius: 8px;
        box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.08);
    }

.custom-navbar {
    background: linear-gradient(145deg, #F5F7FA, #E0E7EC);
    background-image: url('/banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 3px 20px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

    .custom-navbar:hover {
        box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.08);
    }

.profile-container {
    display: flex;
    align-items: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-details h3 {
    font-size: 18px;
    color: #F5F7FA;
}

.profile-details h5 {
    font-size: 14px;
    color: #F5F7FA;
}

.linkedin-button {
    color: #0077B5;
    font-size: 36px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

    .linkedin-button:hover {
        color: #005582;
        transform: scale(1.1);
    }

.navbar-nav {
    font-size: 14px;
    font-weight: 500;
    color: #F5F7FA;
    transition: all 0.2s ease-in-out;
}

    .navbar-nav .nav-link {
        font-size: 14px;
        color: #F5F7FA;
        transition: all 0.2s ease-in-out;
        padding: 8px 12px;
        border-radius: 6px;
        text-align: center;
        width: 120px;
    }

        .navbar-nav .nav-link:hover {
            background: linear-gradient(145deg, #D3DEE8, #E8EFF5);
            color: #1F2D3D;
        }

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

@media (max-width: 768px) {
    .custom-navbar {
        padding: 10px;
    }

    .profile-container img {
        width: 100px;
        height: 100px;
    }

    .profile-details h3 {
        font-size: 16px;
    }

    .profile-details h5 {
        font-size: 13px;
    }

    .linkedin-button {
        font-size: 32px;
    }

    .navbar-nav {
        text-align: left;
        margin: 5px;
    }

        .navbar-nav .nav-link {
            display: block;
            width: 120px;
            padding: 5px;
            text-align: left !important;
        }
}

.content {
    background: linear-gradient(145deg, #F5F7FA, #E0E7EC);
    border-radius: 8px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
}

    .content:hover {
        transform: translateY(-2px);
        box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.08);
    }

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 10px;
}

.search-form {
    display: flex;
    align-items: center;
    margin: 0px !important;
    gap: 5px;
}

.search-input {
    min-width: 40px;
    width: auto !important;
    flex: 1;
    padding: 8px 12px;
    height: 40px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(145deg, #E0E7EC, #F5F7FA);
    color: #2C3E50;
    outline: none;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05);
}

    .search-input::placeholder {
        color: #7A869A;
    }

.search-button {
    margin-top: 0px !important;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(145deg, #D3DEE8, #E8EFF5);
    color: #2C3E50;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

    .search-button i {
        font-size: 16px;
    }

    .search-button:hover {
        background: linear-gradient(145deg, #C4D3E0, #D9E3ED);
        transform: scale(1.05);
        box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    }

@media (max-width: 768px) {
    .search-form {
        gap: 6px;
    }

    .search-input {
        width: 100%;
    }

    .search-button {
        width: 100%;
    }
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 8px;
}

.blog-item {
    background: linear-gradient(145deg, #F5F7FA, #E0E7EC);
    border-radius: 8px;
    padding: 1px;
    width: 100%;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
}

    .blog-item:hover {
        transform: translateY(-3px);
        box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.08);
    }

.blog-title {
    font-size: 16px;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 5px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
    color: #6c757d;
}

    .blog-meta i {
        margin-right: 5px;
        color: #6C757D;
    }

.read-more-btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0056b3;
    background: linear-gradient(145deg, #E0E7EC, #F5F7FA);
    border-radius: 6px;
    padding: 6px 12px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

    .read-more-btn i {
        margin-right: 6px;
        font-size: 16px;
    }

    .read-more-btn:hover {
        background: linear-gradient(145deg, #D3DEE8, #E8EFF5);
        color: #2C3E50;
        transform: scale(1.05);
        box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    }

@media (max-width: 768px) {
    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }

    .read-more-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

.blog-detail {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.blog-item, .blog-detail-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 12px;
    width: 100%;
    min-height: 80px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.08);
}

.blog-content, .blog-detail-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.read-more-btn {
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
}

.blog-meta i {
    font-size: 13px;
    margin-right: 4px;
}

.blog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

    .blog-actions .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 12px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 6px;
    }

        .blog-actions .btn i {
            font-size: 16px;
        }

.btn-like {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .blog-actions {
        flex-direction: column;
        align-items: flex-start;
    }

        .blog-actions .btn {
            width: 100%;
        }
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

    .btn-primary:hover {
        background-color: #0056b3;
        transform: scale(1.04);
    }

.btn-danger {
    background-color: #dc3545;
    border: none;
}

    .btn-danger:hover {
        background-color: #a71d2a;
        transform: scale(1.04);
    }

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.comment-box {
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding: 5px;
    position: relative;
    background-color: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
}

    .comment-box.expanded {
        max-height: none;
        overflow: visible;
    }

.comment-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
}

.toggle-comment {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.comment-actions {
    position: absolute;
    top: 5px;
    right: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 10;
}

.comment-box:hover .comment-actions {
    opacity: 1;
    visibility: visible;
}

.comment-content {
    display: none;
    margin: 5px;
    word-break: break-word;
}

.replies {
    margin-left: 14px;
    border-left: 2px solid #ddd;
    padding-left: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    flex-wrap: wrap;
}

    .pagination .page-item .page-link {
        padding: 6px 12px;
        font-size: 13px;
        font-weight: 500;
        color: #4A4A4A;
        background: linear-gradient(145deg, #E0E7EC, #F5F7FA);
        border-radius: 6px;
        transition: all 0.2s ease-in-out;
        min-width: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
    }

        .pagination .page-item .page-link:hover {
            background: linear-gradient(145deg, #D3DEE8, #E8EFF5);
            color: #2C3E50;
            transform: scale(1.05);
            box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
        }

    .pagination .page-item.active .page-link {
        background: linear-gradient(145deg, #C4D3E0, #D9E3ED);
        color: #1F2D3D;
        transform: scale(1.08);
        font-weight: bold;
        box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    }

    .pagination .page-item.disabled .page-link {
        color: #A0A4A8;
        background: #E5E8EC;
        pointer-events: none;
        opacity: 0.7;
    }

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

        .pagination .page-item {
            flex: 1 1 32px;
            display: flex;
            justify-content: center;
        }

            .pagination .page-item .page-link {
                padding: 5px 10px;
                font-size: 12px;
                min-width: 30px;
            }
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    justify-content: left;
}

    .form-group label {
        min-width: 70px;
        text-align: left;
        flex-shrink: 0;
    }

    .form-group input {
        display: flex;
        width: 100%;
        min-width: 0px;
        max-width: 400px;
        border: 1px solid #ccc;
        padding: 6px;
        border-radius: 4px;
    }

.form-group button {
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    padding: 6px 12px;
    width: auto;
}

    .form-group button:hover {
        background-color: #0056b3;
    }

.CodeMirror-scroll {
    min-height: 100px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
}

.md-table-wrapper {
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

.md-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

    .md-table th,
    .md-table td {
        border: 1px dotted #000;
        padding: 8px;
        text-align: left;
    }