@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

        :root {
            --primary-color: #0366d6;
            --secondary-color: #24292e;
            --text-color: #24292e;
            --background-color: #f6f8fa;
            --card-bg: #ffffff;
            --border-color: #e1e4e8;
            --code-bg: #f6f8fa;
            --blockquote-bg: #f1f8ff;
            --blockquote-border: #c8e1ff;
            --modal-bg: rgba(0, 0, 0, 0.8);
            --font-heading: 'Montserrat', sans-serif;
            --font-body: 'Merriweather', serif;
        }

        body {
            font-family: var(--font-body);
            line-height: 1.7;
            color: var(--text-color);
            background-color: var(--background-color);
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 960px;
            margin: 0 auto;
            padding: 0 20px;
        }

        header {
            background-color: var(--secondary-color);
            color: white;
            padding: 1rem 0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-family: var(--font-heading);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
        }

        .logo svg {
            margin-right: 10px;
        }

        nav ul {
            list-style: none;
            display: flex;
            margin: 0;
            padding: 0;
        }

        nav ul li {
            margin-left: 20px;
        }

        nav ul li a {
            color: #ffffff;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }

        nav ul li a:hover {
            color: #79b8ff;
        }

        main {
            padding: 2rem 0;
        }

        .blog-header {
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }

        .blog-title {
            font-size: 2.2rem;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
            font-family: var(--font-heading);
        }

        .blog-info {
            display: flex;
            align-items: center;
            font-size: 0.9rem;
            color: #586069;
            margin-bottom: 1rem;
        }

        .blog-date, .blog-tags {
            margin-right: 1rem;
            display: flex;
            align-items: center;
        }

        .blog-date svg, .blog-tags svg {
            margin-right: 5px;
        }

        .tag {
            background-color: #e1e4e8;
            padding: 2px 8px;
            border-radius: 4px;
            margin-right: 5px;
            font-size: 0.8rem;
            text-decoration: none;
            color: #24292e;
        }

        .tag:hover {
            background-color: #d0d7de;
        }

        .blog-content {
            background-color: var(--card-bg);
            padding: 2rem;
            border-radius: 6px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .blog-content h2 {
            margin-top: 2rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
            color: var(--primary-color);
            font-family: var(--font-heading);
        }

        .blog-content h3 {
            margin-top: 1.5rem;
            color: var(--secondary-color);
            font-family: var(--font-heading);
        }

        .blog-content p {
            margin-bottom: 1rem;
        }

        .blog-content img {
            display: block;
            max-width: 60%;
            max-height: 500px;
            height: auto;
            border-radius: 4px;
            margin: 1rem auto;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            transition: transform 0.3s ease;
            object-fit: contain;
        }
        
        .blog-content img:hover {
            transform: scale(1.02);
        }
        
        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            padding-top: 50px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: var(--modal-bg);
        }
        
        .modal-content {
            margin: auto;
            display: block;
            max-width: 90%;
            max-height: 90%;
        }
        
        .modal-content {
            animation: zoom 0.6s;
        }
        
        @keyframes zoom {
            from {transform:scale(0)}
            to {transform:scale(1)}
        }
        
        .close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
        }
        
        .close:hover,
        .close:focus {
            color: #bbb;
            text-decoration: none;
            cursor: pointer;
        }

        hr {
            border: 0;
            height: 1px;
            background-color: var(--border-color);
            margin: 2.5rem 0;
        }

        .hr-short-subtle {
            border: 0;
            height: 1px;
            background-color: var(--border-color);
            margin: 1rem auto; /* Reduced top/bottom margin, centered */
            width: 50%; /* Makes the line shorter */
        }

        .blog-content blockquote {
            background-color: var(--blockquote-bg);
            border-left: 6px solid var(--blockquote-border);
            padding: 1rem 1.5rem;
            margin: 1.5rem 0;
            border-radius: 0 4px 4px 0;
            font-style: italic;
            color: #4a5568;
        }

        .blog-content blockquote p {
            margin: 0;
        }

        .blog-content code {
            font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
            background-color: var(--code-bg);
            padding: 2px 5px;
            border-radius: 3px;
            font-size: 0.9rem;
        }

        .blog-content pre {
            background-color: #eef1f4;
            padding: 1.25rem;
            border-radius: 4px;
            overflow-x: auto;
            margin: 1.5rem 0;
            border: 1px solid #d1d5db;
        }

        .blog-content pre code {
            background-color: transparent;
            padding: 0;
        }

        .blog-content ol, .blog-content ul {
            padding-left: 1.5rem;
            margin-bottom: 1rem;
        }

        .blog-content li {
            margin-bottom: 0.5rem;
        }

        .blog-content em {
            color: #6a737d;
        }

        footer {
            background-color: var(--secondary-color);
            color: white;
            padding: 2rem 0;
            margin-top: 3rem;
            text-align: center;
        }

        .footer-links {
            margin-bottom: 1rem;
        }

        .footer-links a {
            color: #79b8ff;
            margin: 0 10px;
            text-decoration: none;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }

        .step-number {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            width: 25px;
            height: 25px;
            text-align: center;
            line-height: 25px;
            border-radius: 50%;
            margin-right: 5px;
        }

        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                text-align: center;
            }

            nav ul {
                margin-top: 1rem;
            }

            nav ul li {
                margin: 0 10px;
            }

            .blog-content {
                padding: 1rem;
            }

            .blog-content img {
                max-width: 90%;
                max-height: 400px;
            }
        }

        .code-block-container {
            position: relative;
            margin-bottom: 1rem;
        }

        .code-block-container pre {
            position: relative;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 8px;
            padding: 1.25rem;
            padding-top: 2.5rem;
            overflow-x: auto;
            margin: 1.5rem 0;
            border: 1px solid #dee2e6;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .code-block-container pre code {
            font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
            font-size: 0.9rem;
            line-height: 1.6;
            color: #212529;
            background: transparent;
            padding: 0;
        }

        /* Language Label */
        .code-lang {
            position: absolute;
            top: 0;
            left: 0;
            background: linear-gradient(135deg, #0366d6 0%, #0056b3 100%);
            color: #ffffff;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 8px 0 8px 0;
            font-family: var(--font-heading);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Syntax Highlighting - Base Styles */
        .code-comment {
            color: #6a737d;
            font-style: italic;
        }

        .code-command {
            color: #d73a49;
            font-weight: 500;
        }

        .code-string {
            color: #032f62;
        }

        .code-keyword {
            color: #6f42c1;
            font-weight: 600;
        }

        .code-variable {
            color: #e36209;
        }

        .code-number {
            color: #005cc5;
        }

        .code-operator {
            color: #586069;
        }

        .code-punctuation {
            color: #586069;
        }

        .code-function {
            color: #005cc5;
        }

        .code-special {
            color: #d73a49;
        }

        /* Tree/ASCII Art Styling */
        .code-tree-branch {
            color: #d73a49;
            font-weight: bold;
        }

        .code-tree-item {
            color: #22863a;
        }

        /* Git Commands Highlighting */
        .code-git-command {
            color: #0366d6;
            font-weight: 600;
            background: rgba(3, 102, 214, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
        }

        .code-git-flag {
            color: #e36209;
            font-weight: 500;
        }

        /* YAML Styling */
        .code-yaml-key {
            color: #0366d6;
        }

        .code-yaml-value {
            color: #22863a;
        }

        .code-yaml-anchor {
            color: #d73a49;
        }

        /* Markdown in Code */
        .code-md-heading {
            color: #6f42c1;
            font-weight: 700;
        }

        .code-md-list {
            color: #005cc5;
        }

        .code-md-checkbox {
            color: #586069;
        }

        .code-md-code {
            color: #d73a49;
            background: rgba(215, 58, 73, 0.1);
            padding: 2px 4px;
            border-radius: 3px;
        }

        /* Line Numbers (Optional) */
        .code-line-numbers {
            display: none;
            color: #6c7086;
            margin-right: 1rem;
            user-select: none;
            text-align: right;
            min-width: 2rem;
        }

        .copy-btn {
            position: absolute;
            top: 8px; 
            right: 8px; 
            padding: 5px 8px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
            opacity: 0.7; 
            transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
        }

        .code-block-container:hover .copy-btn {
            opacity: 1; 
        }

        .copy-btn:hover {
            background-color: #0056b3; 
        }

        .copy-btn svg {
            vertical-align: middle;
        }

        /* Styles for Zalo example messages */
        .zalo-example {
            background-color: #f0f2f5; /* Light grey, similar to some chat UIs */
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 15px;
            margin: 1.5em 0;
            font-family: var(--font-body); /* Use body font for readability */
            line-height: 1.6;
        }

        .zalo-example pre.zalo-message-content {
            white-space: pre-wrap;    /* Preserves line breaks and spaces */
            word-wrap: break-word;      /* Ensures long lines wrap */
            margin: 0;                  /* Reset margin for pre */
            padding: 0;                 /* Reset padding for pre */
            background-color: transparent; /* No background for pre itself */
            border: none;               /* No border for pre itself */
            font-family: inherit;       /* Inherit font from .zalo-example */
            font-size: 0.95em;          /* Slightly smaller text */
            color: #1c1e21;             /* Darker text color */
        }

        .highlighted-reply {
            background-color: #d6eaff; /* Light blue background for highlight */
            padding: 3px 6px;
            border-radius: 4px;
            /* display: inline-block; /* Ensures background only covers text content */
            /* margin-top: 5px; /* Adds a little space if it were a block */
        }

        /* Survey Styles */
        .survey-separator {
            margin-top: 2rem;
            margin-bottom: 1.5rem;
            border: 0;
            border-top: 2px solid var(--secondary-color);
        }

        .survey-container {
            background-color: var(--background-color);
            padding: 1.5rem;
            margin-top: 1rem;
            margin-bottom: 2rem;
            border-radius: 8px;
            border: 1px solid #ddd; /* Light border for the container */
            box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow */
        }

        .survey-title {
            font-family: var(--font-headings);
            color: var(--primary-color);
            margin-top: 0;
            margin-bottom: 0.5rem;
            font-size: 1.8em;
            text-align: center;
        }

        .survey-intro {
            font-family: var(--font-body);
            color: var(--text-color);
            margin-bottom: 1.5rem;
            line-height: 1.6;
            text-align: center;
        }

        .google-form-embed-wrapper {
            position: relative;
            overflow: hidden;
            padding-top: 100%; /* Adjust this percentage based on the aspect ratio of your form, e.g., for a form with a typical height, try values around 120-150% of the width to avoid excessive height or scrollbars */
            max-width: 700px; /* Max width of the form */
            margin: 0 auto; /* Center the form */
        }

        .google-form-embed-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        /* Responsive adjustments for smaller screens */
        @media (max-width: 768px) {
            .survey-title {
                font-size: 1.5em;
            }
            .survey-container {
                padding: 1rem;
            }
            .google-form-embed-wrapper {
                padding-top: 150%; /* Adjust if needed for mobile view, might need more height relative to width */
            }
        }

        @media (max-width: 480px) {
            .survey-title {
                font-size: 1.3em;
            }
            .google-form-embed-wrapper {
                padding-top: 180%; /* Further adjust for very small screens */
            }
        }

        /* Table Styles */
        .blog-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.95rem;
        }

        .blog-content table thead {
            background-color: var(--code-bg);
            border-bottom: 2px solid var(--border-color);
        }

        .blog-content table th {
            padding: 12px 15px;
            text-align: left;
            font-weight: bold;
            color: var(--secondary-color);
            font-family: var(--font-heading);
            border-right: 1px solid var(--border-color);
        }

        .blog-content table td {
            padding: 12px 15px;
            border-bottom: 1px solid var(--border-color);
            border-right: 1px solid var(--border-color);
        }

        .blog-content table td:last-child,
        .blog-content table th:last-child {
            border-right: none;
        }

        .blog-content table tbody tr:hover {
            background-color: var(--background-color);
        }

        .blog-content table tbody tr:last-child td {
            border-bottom: none;
        }

        @media (max-width: 768px) {
            .blog-content table {
                font-size: 0.85rem;
            }

            .blog-content table th,
            .blog-content table td {
                padding: 8px 10px;
            }
        } 