/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap");


/* Base styles */
b,
strong {
    font-weight: 700;
}

/* Blog Post Wrapper */
.blog-post.v2 {
    max-width: 800px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 32px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    transition: box-shadow 0.3s ease;
}

.blog-post.v2:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* Blog Post Header */
.blog-post-header {
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 12px;
}

.blog-post-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.blog-post-img:hover {
    transform: scale(1.02);
}

/* Blog Post Title */
.blog-post-body .blog-post-title {
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.blog-post-body .blog-post-title:hover {
    color: #4a90e2;
}

.blog-post-body .blog-post-title h5,
.blog-post-body h5 {
    font-size: 1.875rem;
    font-weight: 700;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    margin: 24px 0 16px 0;
    line-height: 1.4;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

/* Override text-normal class */
.blog-post-body .blog-post-title.text-normal h5 {
    font-weight: 700 !important;
    font-family: "Inter", sans-serif !important;
    color: #1e293b !important;
}

/* Post Meta */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.post-meta-item i {
    color: #4a90e2;
    font-size: 1rem;
}

/* Blog Content */
.blog-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #2d3748;
    margin-bottom: 32px;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    margin: 32px 0 16px 0;
    color: #1a202c;
    position: relative;
    padding-left: 16px;
}

.blog-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 2px;
}

.blog-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    margin: 32px 0 16px 0;
    color: #1a202c;
    position: relative;
    padding-left: 16px;
}

.blog-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 2px;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content ul {
    padding-left: 24px;
    margin: 20px 0;
}

.blog-content li {
    margin-bottom: 12px;
    position: relative;
}

.blog-content li::marker {
    color: #4a90e2;
}

.blog-content strong {
    color: #1a202c;
    font-weight: 700;
}

.blog-content a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.blog-content a:hover {
    border-bottom-color: #4a90e2;
}

/* Social Sharing */
/* .socials {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid #e2e8f0;
} */

.social-btn {
    width: 48px;
    height: 48px;
    background: #f7fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e2e8f0;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.social-facebook:hover {
    background: #3b5998;
    color: white;
    border-color: #3b5998;
}

.social-twitter:hover {
    background: #00acee;
    color: white;
    border-color: #00acee;
}

.social-linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.social-pinterest:hover {
    background: #bd081c;
    color: white;
    border-color: #bd081c;
}

/* Comments Section */
.comments {
    margin-top: 40px;
    border-top: 2px solid #e2e8f0;
    padding-top: 32px;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.text-muted {
    color: #718096;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post.v2 {
        margin: 16px;
        padding: 24px;
        border-radius: 12px;
    }

    .blog-post-body h5,
    .blog-post-body .blog-post-title h5 {
        font-size: 1.5rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content h3 {
        font-size: 1.25rem;
        margin: 24px 0 12px 0;
    }

    .post-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .socials {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .blog-post.v2 {
        margin: 12px;
        padding: 20px;
    }

    .blog-post-body h5,
    .blog-post-body .blog-post-title h5 {
        font-size: 1.375rem;
        line-height: 1.4;
    }

    .blog-post-img {
        height: 200px;
    }

    .blog-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .blog-content ul {
        padding-left: 20px;
    }
}

/* Hero Upload Zone Styles - Tích hợp với uploadbox có sẵn */
.hero-upload-zone {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.upload-zone-hero {
    border: 3px dashed #4a90e2;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.upload-zone-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(74, 144, 226, 0.08) 0%,
        transparent 70%
    );
    transition: all 0.4s ease;
    transform: scale(0);
    z-index: 0;
}

.upload-zone-hero:hover {
    border-color: #2563eb;
    background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 100%);
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(74, 144, 226, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.upload-zone-hero:hover::before {
    transform: scale(1);
}

.upload-zone-hero .upload-icon {
    font-size: 64px;
    color: #4a90e2;
    margin-bottom: 24px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.upload-zone-hero:hover .upload-icon {
    transform: scale(1.1) rotateY(10deg);
    color: #2563eb;
}

.upload-zone-hero .upload-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    position: relative;
    z-index: 1;
}

.upload-zone-hero .upload-description {
    font-size: 18px;
    color: #64748b;
    margin: 0 0 25px 0;
    position: relative;
    z-index: 1;
}

.upload-zone-hero .browse-text {
    color: #4a90e2;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.upload-zone-hero:hover .browse-text {
    color: #2563eb;
}

.upload-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.feature-item i {
    color: #4a90e2;
    font-size: 16px;
}

.upload-hint {
    color: #94a3b8;
    font-size: 14px;
    display: block;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

/* Locked state styles */
.upload-zone-locked {
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #94a3b8;
}

.upload-zone-locked:hover {
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #64748b;
}

.upload-zone-locked .upload-icon {
    color: #64748b;
}

.upload-zone-locked:hover .upload-icon {
    color: #475569;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: #4a90e2;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.upload-zone-locked:hover .cta-button {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Animation effects */
@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* .upload-zone-hero:active {
    animation: bounce-in 0.6s ease;
} */

/* Pulse effect khi click */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(74, 144, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

/* .upload-zone-hero:focus,
.upload-zone-hero.active {
    animation: pulse 1.5s;
    outline: none;
} */

/* Mobile responsive for upload zone */
@media (max-width: 768px) {
    .upload-zone-hero {
        padding: 40px 20px;
        border-radius: 16px;
    }

    .upload-zone-hero .upload-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .upload-zone-hero .upload-title {
        font-size: 22px;
    }

    .upload-zone-hero .upload-description {
        font-size: 16px;
    }

    .upload-features {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .upload-zone-hero {
        padding: 30px 15px;
    }

    .upload-zone-hero .upload-icon {
        font-size: 40px;
    }

    .upload-zone-hero .upload-title {
        font-size: 20px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Upload modal styles */
.uploadbox.show {
    display: flex !important;
    animation: uploadFadeIn 0.3s ease;
}

@keyframes uploadFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Upload Files List Styles */

.upload-files-list {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.upload-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.upload-files-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.upload-files-header .link {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.upload-files-header .link:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Dropzone Container */
.upload-files-list#dropzone {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.upload-files-list#dropzone::-webkit-scrollbar {
    width: 6px;
}

.upload-files-list#dropzone::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.upload-files-list#dropzone::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.upload-files-list#dropzone::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* File Preview Item */
#dropzone .dz-preview {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s ease;
    margin-bottom: 12px; /* <-- Thay đổi từ 0 thành 12px */
    min-height: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#dropzone .dz-preview:hover {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

#dropzone .dz-preview.dz-success {
    border-color: #28a745;
    background: #f8fff9;
}

#dropzone .dz-preview.dz-error {
    border-color: #dc3545;
    background: #fff8f8;
}

/* File Icon */
.file-icon {
    flex-shrink: 0;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon .vi {
    font-size: 16px;
    color: #007bff;
}

/* File Info */
.file-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-details {
    flex-grow: 1;
    min-width: 0;
}

.dz-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    word-break: break-all;
    font-size: 14px;
    line-height: 1.3;
}

.dz-name [data-dz-name] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.dz-size {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}

/* Progress Bar */
.dz-progress {
    width: 120px;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}

.dz-upload {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    display: block;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.dz-progress {
    width: 120px;
    height: 16px; /* Tăng height để chứa text */
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: visible; /* Thay đổi từ hidden thành visible */
    position: relative;
    margin-right: 45px; /* Tăng margin để chừa chỗ cho text */
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.dz-upload-precent {
    position: absolute;
    right: -40px; /* Ra ngoài progress bar */
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

/* Status Messages */
.dz-details-info {
    margin-right: 12px;
    flex-shrink: 0;
}

.dz-success-mark {
    color: #28a745;
    font-size: 11px;
    font-weight: 500;
}

.dz-error-mark {
    color: #dc3545;
    font-size: 11px;
    font-weight: 500;
}

/* Actions */
.dz-actions {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
    margin-left: 8px;
}

.dz-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 12px;
}

.dz-edit {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.dz-edit:hover {
    color: #0056b3;
    background: rgba(0, 123, 255, 0.2);
}

.dz-remove {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.dz-remove:hover {
    color: #c82333;
    background: rgba(220, 53, 69, 0.2);
}

/* File Edit Modal */
.dz-file-edit {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.dz-file-edit-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dz-file-edit-box-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.dz-file-edit-box-header .fs-5 {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.dz-file-edit-box-body .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.dz-file-edit-box-body .required {
    color: #dc3545;
}

.dz-file-edit-box-body .form-control,
.dz-file-edit-box-body .form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.dz-file-edit-box-body .form-control:focus,
.dz-file-edit-box-body .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.dz-file-edit-box-body textarea {
    resize: vertical;
    min-height: 80px;
}

/* Upload Result */
/* .upload-files-list .upload-result {
    margin-top: 15px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
} */

.download-link-section .result-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.link-actions .form-control {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.link-actions .btn-copy {
    padding: 8px 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 13px;
}

.link-actions .btn-copy:hover {
    background: #5a6268;
}

.download-link-section .btn-primary {
    padding: 6px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.download-link-section .btn-primary:hover {
    background: #0056b3;
    text-decoration: none;
}

/* Upload Form */
.uploadbox-wrapper-form {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.uploadbox-wrapper-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.uploadbox-wrapper-form .form-select {
    margin-bottom: 20px;
}

.uploadbox-wrapper-form #upload-files-btn {
    padding: 12px 30px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.uploadbox-wrapper-form #upload-files-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.uploadbox-wrapper-form #upload-files-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-files-list {
        padding: 15px;
    }

    .dz-preview.dz-file-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .file-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .dz-actions {
        margin-left: 0;
        align-self: flex-end;
    }

    .upload-files-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .link-actions {
        flex-direction: column;
    }

    .dz-file-edit-box {
        padding: 20px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .dz-preview.dz-file-preview {
        padding: 12px;
    }

    .uploadbox-wrapper-form {
        padding: 15px;
    }

    .dz-file-edit-box {
        padding: 15px;
        margin: 10px;
    }
}
  .mobileShow {display: none;}

  /* Smartphone Portrait and Landscape */
  @media only screen
    and (min-device-width : 320px)
    and (max-device-width : 480px){ 
      .mobileShow {display: inline;}
  }
  .mobileHide { display: inline; }

  /* Smartphone Portrait and Landscape */
  @media only screen
    and (min-device-width : 320px)
    and (max-device-width : 480px){
     .mobileHide { display: none;}
  }