/* ==========================================================================
   ONETOMAX AGENCY - WIDGETS & FOOTER STYLESHEET
   Testimonials, News Blog, Footer and Floating Widgets
   ========================================================================== */

/* Testimonials Section - Identical to khachhangnoi template */
.testimonials-section {
    padding: 75px 0 85px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 50px;
    align-items: center;
}

.testimonials-left {
    max-width: 580px;
}

.testimonial-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0080e1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.testimonial-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #0080e1;
    display: inline-block;
}

.testimonial-title {
    font-size: 2.85rem;
    font-weight: 900;
    line-height: 1.2;
    color: #1e2329;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 34px 34px 30px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    max-width: 540px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-quote {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #555e68;
    margin-bottom: 24px;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-author-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0080e1;
    margin-bottom: 3px;
}

.testimonial-author-role {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.testimonial-nav {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    justify-content: center;
    max-width: 540px;
}

.nav-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: none;
    background: #e2e8f0;
    color: #a0aec0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.nav-arrow-btn:hover {
    background: #0080e1;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 225, 0.3);
}

.testimonial-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-phone-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.08));
    animation: gentleHoverMockup 5s ease-in-out infinite alternate;
}

@keyframes gentleHoverMockup {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-8px);
    }
}

/* News & Blog */
.news-section {
    padding: 90px 0;
    background-color: var(--bg-soft-green);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.news-img-box {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.news-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-readmore {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Footer & Floating Actions */
.site-footer {
    background: #081a2e;
    color: #e2e8f0;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 16px 0 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.footer-contact-item i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-policy-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0 16px;
    margin-top: 40px;
}

.footer-policy-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-policy-nav a {
    color: #94a3b8;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-policy-nav a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    padding-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 0.88rem;
    color: #94a3b8;
}

.footer-legal-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-legal-line {
    margin: 0;
    line-height: 1.65;
    color: #94a3b8;
    font-size: 0.88rem;
}

.footer-legal-line strong {
    color: #f1f5f9;
    font-weight: 700;
}

.legal-rep-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-rep-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-slogan-wrap {
    flex-shrink: 0;
}

.footer-slogan-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50px;
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Floating Hotline Capsule (Bottom-left) */
.floating-hotline-capsule {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    background: #0080e1;
    color: #ffffff;
    padding: 6px 20px 6px 8px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(0, 128, 225, 0.4);
    gap: 10px;
    transition: var(--transition);
}

.floating-hotline-capsule:hover {
    background: #0066b3;
    transform: scale(1.05);
}

.floating-hotline-capsule .capsule-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #0080e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    animation: pulseRing 2s infinite ease-in-out;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

.floating-hotline-capsule .capsule-number {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* Floating contact buttons (Right edge) */
.floating-contact-box {
    position: fixed;
    bottom: 120px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    cursor: pointer;
}

.float-btn:hover {
    transform: scale(1.12);
}

.float-btn-zalo { background: #0084ff; }
.float-btn-messenger { background: #0084ff; }

