/* Core Styling & Design System - HBA Global Consultancy (Accounting Firm in Penang) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Accounting & Corporate Trust Color Palette */
    --primary-dark: #0a1f38;      /* Deep Professional Navy */
    --primary-medium: #133b68;    /* Corporate Blue */
    --primary-accent: #1e5ba3;    /* Accent Royal Blue */
    --secondary-blue: #2563eb;    /* Vibrant Blue */
    --accent-gold: #c59b27;       /* Executive Gold */
    --accent-gold-hover: #dfb23b; /* Vibrant Gold Accent */
    
    /* Neutrals */
    --bg-light: #f8fafc;          /* Slate 50 */
    --bg-card: #ffffff;
    --text-dark: #0f172a;         /* Slate 900 */
    --text-muted: #475569;        /* Slate 600 */
    --border-color: #e2e8f0;      /* Slate 200 */
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.6);
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(10, 31, 56, 0.06);
    --shadow-md: 0 10px 20px -3px rgba(10, 31, 56, 0.08), 0 4px 6px -2px rgba(10, 31, 56, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(10, 31, 56, 0.12), 0 10px 10px -5px rgba(10, 31, 56, 0.04);
    --shadow-gold: 0 4px 14px rgba(197, 155, 39, 0.35);

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--primary-dark);
    color: #ffffff;
}
.section-dark h2, .section-dark h3 {
    color: #ffffff;
}
.section-dark p {
    color: #cbd5e1;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #ffffff;
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.45);
}

.btn-secondary {
    background-color: var(--primary-medium);
    color: #ffffff;
}
.btn-secondary:hover {
    background-color: var(--primary-accent);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--primary-dark);
}
.btn-outline:hover {
    background-color: var(--accent-gold);
    color: #ffffff;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 48px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
    line-height: 1.1;
}

.brand-sub {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0a1f38 0%, #133b68 50%, #0d2847 100%);
    color: #ffffff;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(197, 155, 39, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 155, 39, 0.15);
    border: 1px solid rgba(197, 155, 39, 0.4);
    color: #fce79f;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent-gold);
}

.hero-desc {
    font-size: 18px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 13px;
    color: #94a3b8;
}

.hero-image-wrapper {
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-card-caption {
    padding: 20px 24px;
    background: rgba(10, 31, 56, 0.95);
    border-top: 1px solid rgba(197, 155, 39, 0.3);
}

.hero-card-caption h4 {
    color: #ffffff;
    font-size: 17px;
    margin-bottom: 4px;
}

.hero-card-caption p {
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 500;
}

/* Trust Bar */
.trust-bar {
    background: #ffffff;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 40px;
    height: 40px;
    background: rgba(19, 59, 104, 0.08);
    color: var(--primary-medium);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.trust-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Services Grid */
.section-title-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 155, 39, 0.5);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-dark));
    color: var(--accent-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 21px;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: "✓";
    color: var(--accent-gold);
    font-weight: 700;
}

.service-link {
    font-weight: 600;
    color: var(--primary-medium);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.service-link:hover {
    color: var(--accent-gold);
    gap: 10px;
}

/* Feature Showcase (Founder & Story) */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.showcase-img-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.checklist {
    list-style: none;
    margin: 24px 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.check-icon {
    color: #16a34a;
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

/* CTA Box */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
    color: #ffffff;
    font-size: 34px;
    margin-bottom: 16px;
}

.cta-banner p {
    color: #cbd5e1;
    font-size: 17px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

/* Contact Form Card */
.contact-card {
    background: #ffffff;
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background: #061528;
    color: #94a3b8;
    padding: 80px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 17px;
    margin-bottom: 24px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
}

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

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.7;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero h1 { font-size: 38px; }
    .hero-grid { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .cta-banner { grid-template-columns: 1fr; padding: 40px 32px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta .btn { display: none; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 32px; }
    .hero-metrics { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .section { padding: 56px 0; }
}

/* ==========================================================================
   Article & Blog Content Typography System
   ========================================================================== */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
}

.article-body h2 {
    font-size: 28px;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 22px;
    color: var(--primary-medium);
    margin-top: 32px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.article-body h4 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-top: 24px;
    margin-bottom: 12px;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.article-body strong {
    color: #0f172a;
    font-weight: 700;
}

.article-body ul, 
.article-body ol {
    margin: 16px 0 24px 28px;
    padding-left: 8px;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #334155;
}

.article-body li::marker {
    color: var(--accent-gold);
    font-weight: bold;
}

/* Beautiful Clean Tables */
.article-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #ffffff;
}

.article-body th {
    background-color: var(--primary-dark);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 18px;
    text-align: left;
    letter-spacing: 0.3px;
    border: none;
}

.article-body td {
    padding: 14px 18px;
    font-size: 14px;
    color: #334155;
    border-top: 1px solid #e2e8f0;
    line-height: 1.6;
}

.article-body tr:nth-child(even) td {
    background-color: #f8fafc;
}

.article-body tr:hover td {
    background-color: #f1f5f9;
}

/* Blockquotes */
.article-body blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 4px solid var(--accent-gold);
    background: #f8fafc;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: #1e293b;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Images in Articles */
.article-body img {
    border-radius: var(--radius-md);
    margin: 24px auto;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Search Engine & Filter Controls
   ========================================================================== */
.search-bar-wrap {
    max-width: 650px;
    margin: -30px auto 36px;
    position: relative;
    z-index: 10;
}

.search-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-svg {
    position: absolute;
    left: 20px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    border-radius: var(--radius-full);
    border: 2px solid #cbd5e1;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(10, 31, 56, 0.12);
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 12px 30px rgba(197, 155, 39, 0.25);
}

.cat-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.cat-pill {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.cat-pill:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.cat-pill.active {
    background: var(--primary-medium);
    color: #ffffff;
    border-color: var(--primary-medium);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   FAQ Accordions (AEO Optimized)
   ========================================================================== */
.faq-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.faq-container {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(197, 155, 39, 0.4);
}

.faq-item.active {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 22px 28px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    font-size: 22px;
    color: var(--accent-gold);
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease;
    padding: 0 28px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 28px 24px;
}

/* Testimonials Section */
.testimonials-section {
    background: #f8fafc;
    padding: 80px 0;
}

.rating-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.rating-badge-card {
    background: #ffffff;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-stars {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
}

.testimonial-filter-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.testim-pill {
    padding: 8px 18px;
    border-radius: 99px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.testim-pill.active, .testim-pill:hover {
    background: var(--primary-dark);
    color: #ffffff;
    border-color: var(--primary-dark);
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* Testimonials Carousel (3 Cards Sliding Viewport) */
.testimonials-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 52px;
}

.testimonials-viewport {
    overflow: hidden;
    width: 100%;
    padding: 12px 4px;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.testimonial-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    flex: 0 0 calc((100% - 48px) / 3); /* Exactly 3 cards visible on desktop */
    box-sizing: border-box;
    min-height: 290px;
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc((100% - 24px) / 2); /* 2 cards visible on tablet */
    }
}

@media (max-width: 640px) {
    .testimonials-carousel-container {
        padding: 0 10px;
    }
    .testimonial-card {
        flex: 0 0 100%; /* 1 card visible on mobile */
    }
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    z-index: 10;
    transition: all 0.25s ease;
    user-select: none;
    line-height: 1;
}

.carousel-arrow:hover:not(:disabled) {
    background: var(--primary-dark);
    color: #ffffff;
    border-color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(0, 15, 93, 0.2);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.carousel-arrow.prev {
    left: 0;
}

.carousel-arrow.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-dark);
    width: 24px;
    border-radius: 12px;
}

.testim-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.testim-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.testim-author h4 {
    font-size: 16px;
    margin: 0 0 2px 0;
    color: var(--primary-dark);
}

.testim-badge {
    font-size: 12px;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.testim-quote {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-dark);
    margin-bottom: 18px;
    flex-grow: 1;
    font-style: italic;
}

.testim-proof-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--primary-medium);
    background: rgba(0, 15, 93, 0.04);
    border: 1px solid rgba(0, 15, 93, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.testim-proof-btn:hover {
    background: var(--primary-dark);
    color: #ffffff;
    border-color: var(--primary-dark);
}

/* Modal lightbox for review screenshot */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.review-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.review-modal-header {
    padding: 14px 20px;
    background: var(--primary-dark);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.review-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.review-modal-body {
    padding: 20px;
    text-align: center;
    background: #1e293b;
}

.review-modal-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

