/* ============================================
   TÀI CODER - Main Stylesheet
   ============================================ */

/* --- Base --- */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* --- Text Line Clamp --- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- No Scrollbar (Category Filter) --- */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* --- Blog Post Content --- */
.post-content {
    color: #475569;
    line-height: 1.9;
    font-size: 1rem;
}

.post-content h2 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-left: 14px;
    border-left: 4px solid #3b82f6;
}

.post-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    color: #475569;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.post-content strong {
    color: #1e293b;
    font-weight: 700;
}

.post-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.post-content a:hover {
    color: #1d4ed8;
}

.post-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.post-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.post-content ol {
    padding-left: 24px;
    margin-bottom: 1.5rem;
    counter-reset: ol-counter;
    list-style: none;
}

.post-content ol li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 0.6rem;
    line-height: 1.7;
    counter-increment: ol-counter;
}

.post-content ol li::before {
    content: counter(ol-counter) '.';
    position: absolute;
    left: -20px;
    font-weight: 800;
    color: #3b82f6;
}

.post-content blockquote {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    color: #475569;
    font-style: italic;
}

.post-content img {
    border-radius: 12px;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.post-content h2:first-child {
    margin-top: 0;
}

@media (min-width: 768px) {
    .post-content {
        font-size: 1.05rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }
}

/* --- Service Card Hover --- */
.service-hover {
    transition: all 0.3s ease;
}

.service-hover:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

/* --- Service Icon --- */
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    transition: all 0.3s ease;
}

.service-hover:hover .service-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    transform: scale(1.1);
}

/* --- Process Step Icon --- */
.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
}

/* --- Hamburger Menu Button --- */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #334155;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background: #f1f5f9;
}

/* --- Mobile Nav Overlay --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

/* --- Mobile Nav Panel --- */
.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: #fff;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav.active .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-panel .close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: background 0.2s;
}

.mobile-nav-panel .close-btn:hover {
    background: #f1f5f9;
}

.mobile-nav-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-nav-panel a:hover {
    background: #f1f5f9;
}

.mobile-nav-panel a i {
    width: 20px;
    text-align: center;
    color: #3b82f6;
}

.mobile-nav-panel .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 14px;
    background: #2563eb;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-nav-panel .nav-cta i {
    color: #fff;
}

.mobile-nav-panel .nav-cta:hover {
    background: #1d4ed8;
}

/* --- Footer Social Icons --- */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Footer Contact Info --- */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.contact-item i {
    color: #3b82f6;
    width: 16px;
    text-align: center;
}

/* --- Footer Links --- */
.footer-link {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #3b82f6;
    padding-left: 4px;
}

.footer-link i {
    color: #475569;
    transition: color 0.2s;
}

.footer-link:hover i {
    color: #3b82f6;
}

/* --- Contact Page Cards --- */
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

/* --- CTA Button Icons --- */
.btn-icon {
    margin-right: 6px;
    font-size: 0.875em;
}

/* --- Hero Animations --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-fadeInUp {
    animation: fadeInUp 0.7s ease-out both;
}

/* ============================================
   Responsive: Mobile (<768px)
   ============================================ */
@media (max-width: 767px) {
    .hamburger-btn {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    /* Navbar Zalo button - hide on mobile (shown in mobile nav instead) */
    .nav-zalo-btn {
        display: none;
    }
}

/* --- Toast Notifications --- */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}