/* Hoston Energy Theme - Custom Styles */

html { scroll-behavior: smooth; }

/* Global responsive fallback for images and SVGs */
img, svg { max-width: 100%; height: auto; }
svg[width]:not([class*="w-"]) { max-width: 100%; }
.grid-pattern { background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 30px 30px; }
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }
.btn-hover { transition: all 0.3s ease; }
.btn-hover:hover { transform: translateY(-2px); }
.partner-card { transition: all 0.3s ease; }
.partner-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px -8px rgba(37,99,235,0.15); border-color: #dbeafe; }
.partner-cta-btn { background-color: #2563eb !important; color: #ffffff !important; }
.partner-cta-btn:hover { background-color: #1d4ed8 !important; }

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.cert-scroll-container { overflow: hidden; position: relative; }
.cert-scroll-track { display: flex; animation: scroll-left 40s linear infinite; width: max-content; }
.cert-scroll-container:hover .cert-scroll-track { animation-play-state: paused; }

@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
.floating { animation: float 3s ease-in-out infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.blink { animation: blink 2s ease-in-out infinite; }

@keyframes grow-bar { 0% { height: 0; } 100% { height: var(--bar-height); } }
.chart-bar { animation: grow-bar 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; height: 0; }

@keyframes draw-line { 0% { stroke-dashoffset: 1200; } 100% { stroke-dashoffset: 0; } }
.chart-line { stroke-dasharray: 1200; animation: draw-line 2.2s ease-out forwards; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-slow { animation: spin-slow 10s linear infinite; transform-origin: center bottom; }

@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }
.pulse-ring { animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite; }

@keyframes fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fade-in-up 0.8s ease-out forwards; }

.hero-bg {
    background-image: linear-gradient(135deg, rgba(6, 78, 59, 0.55) 0%, rgba(7, 89, 133, 0.45) 50%, rgba(30, 58, 138, 0.55) 100%),
        url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
}

/* Gallery Item Styles - About Us page */
.gallery-item {
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    transition: transform 0.5s ease;
    display: block;
    width: 100%;
    height: 192px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.95) 0%, rgba(30, 58, 138, 0.5) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    color: white;
    transform: translateY(8px);
    transition: transform 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Map case thumb styles */
.map-case-thumb {
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.map-case-thumb:hover {
    transform: scale(1.05);
}

.world-map-bg {
    background-image: linear-gradient(135deg, rgba(255,255,255,0.40) 0%, rgba(219,234,254,0.40) 100%),
        url('world-map.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .world-map-bg { background-attachment: scroll; }
}

.map-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.map-pin::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.5);
    animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.cert-card { transition: all 0.3s ease; }
.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.25);
    border-color: #3b82f6;
}

.cert-carousel {
    position: relative;
    width: 100%;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    user-select: none;
}
.cert-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}
.cert-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 260px;
    margin-left: -170px;
    margin-top: -130px;
    transition: all 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: pointer;
    will-change: transform, opacity;
}
.cert-slide-inner {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.35), 0 8px 16px -8px rgba(0,0,0,0.12);
    border: 2px solid rgba(219, 234, 254, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: all 0.5s ease;
}
.cert-slide-inner img {
    max-width: 100%;
    max-height: 78%;
    object-fit: contain;
    border-radius: 8px;
}
.cert-slide-label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    letter-spacing: 0.5px;
}
.cert-slide.active .cert-slide-inner {
    border-color: #2563eb;
    box-shadow: 0 30px 60px -20px rgba(37, 99, 235, 0.55), 0 12px 24px -10px rgba(0,0,0,0.18);
}
.cert-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.3);
    color: #2563eb;
}
.cert-nav:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-50%) scale(1.08);
}
.cert-prev { left: 16px; }
.cert-next { right: 16px; }
.cert-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.cert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cert-dot.active {
    background: #2563eb;
    width: 22px;
    border-radius: 4px;
}
@media (max-width: 768px) {
    .cert-carousel { height: 300px; }
    .cert-slide {
        width: 240px;
        height: 200px;
        margin-left: -120px;
        margin-top: -100px;
    }
}
@media (max-width: 480px) {
    .cert-carousel { height: 260px; }
    .cert-slide {
        width: 180px;
        height: 150px;
        margin-left: -90px;
        margin-top: -75px;
    }
    .cert-slide-label { font-size: 10px; }
}

.float-contact {
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5), 0 0 0 4px rgba(255,255,255,0.9);
}
.float-contact:hover {
    transform: scale(1.08);
}

.contact-tooltip {
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.25s ease;
    pointer-events: none;
}
.float-contact-wrapper:hover .contact-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Products page styles */
.product-card { transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -8px rgba(37,99,235,0.25); }

.number-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    font-weight: 800;
    font-size: 0.875rem;
}
.product-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}
.tag-core { background: #dbeafe; color: #1d4ed8; }
.tag-feature { background: #dcfce7; color: #16a34a; }
.tag-partner { background: #f1f5f9; color: #475569; }

.product-image-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
}
.product-image-wrap img {
    transition: transform 0.4s ease;
}
.product-image-wrap:hover img {
    transform: scale(1.05);
}

.spec-panel { display: none; }
.spec-panel.open { display: block; }

.screenshot-frame {
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f9fafb;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About page styles */
.about-hero-bg {
    background-image: linear-gradient(135deg, rgba(7, 89, 133, 0.55) 0%, rgba(30, 58, 138, 0.45) 50%, rgba(6, 78, 59, 0.55) 100%),
        url('../images/about-hero-banner.jpg');
    background-size: cover;
    background-position: center center;
}

/* Contact page styles */
.contact-hero-bg {
    background-image: linear-gradient(135deg, rgba(7, 89, 133, 0.55) 0%, rgba(30, 58, 138, 0.45) 50%, rgba(6, 78, 59, 0.55) 100%),
        url('../images/contact-hero-banner.png');
    background-size: cover;
    background-position: center center;
}

/* Products page banner */
.products-hero-bg {
    background-image: linear-gradient(135deg, rgba(7, 89, 133, 0.60) 0%, rgba(30, 58, 138, 0.50) 50%, rgba(6, 78, 59, 0.60) 100%),
        url('../images/products-hero-banner.jpg');
    background-size: cover;
    background-position: center center;
}

/* Solutions page banner */
.solutions-hero-bg {
    background-image: linear-gradient(135deg, rgba(7, 89, 133, 0.55) 0%, rgba(30, 58, 138, 0.45) 50%, rgba(6, 78, 59, 0.55) 100%),
        url('../images/solutions-hero-banner.png');
    background-size: cover;
    background-position: center center;
}

/* Applications page banner */
.applications-hero-bg {
    background-image: linear-gradient(135deg, rgba(7, 89, 133, 0.55) 0%, rgba(30, 58, 138, 0.45) 50%, rgba(6, 78, 59, 0.55) 100%),
        url('../images/applications-hero-banner.jpg');
    background-size: cover;
    background-position: center center;
}

/* WordPress form styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.wpcf7-form input[type="submit"] {
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.wpcf7-form input[type="submit"]:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}
.wpcf7-response-output {
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    margin-top: 1rem !important;
}

/* CTA background (used on Home/Products/About pages) */
.cta-bg {
    background-image: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(6, 95, 70, 0.88) 50%, rgba(22, 101, 52, 0.9) 100%),
        url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

/* About page - Our Journey timeline */
.journey-wrap { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; padding: 20px 0 40px; scrollbar-width: thin; scrollbar-color: #1e40af #e5e7eb; }
.journey-wrap::-webkit-scrollbar { height: 8px; }
.journey-wrap::-webkit-scrollbar-track { background: #e5e7eb; border-radius: 4px; }
.journey-wrap::-webkit-scrollbar-thumb { background: #1e40af; border-radius: 4px; }
.journey-track { position: relative; width: 1600px; height: 380px; margin: 0 auto; }
.journey-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.journey-node { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.journey-dot { width: 24px; height: 24px; border-radius: 50%; background: white; border: 4px solid #1e40af; box-shadow: 0 0 0 4px rgba(30,64,175,0.15); transition: all 0.3s; }
.journey-node.highlight .journey-dot { background: #22c55e; border-color: #16a34a; box-shadow: 0 0 0 6px rgba(34,197,94,0.3); }
.journey-node:hover .journey-dot { transform: scale(1.2); }
.journey-card { position: absolute; width: 200px; transform: translateX(-50%); background: white; padding: 14px 16px; border-radius: 12px; box-shadow: 0 8px 24px -8px rgba(30,58,138,0.2); border: 1px solid #dbeafe; transition: all 0.3s ease; }
.journey-card:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 14px 32px -10px rgba(30,58,138,0.3); border-color: #3b82f6; }
.journey-node.highlight .journey-card { background: linear-gradient(135deg, #eff6ff, #dcfce7); border-color: #22c55e; }
.journey-year { display: inline-block; background: linear-gradient(135deg, #1e3a8a, #2563eb); color: white; padding: 3px 12px; border-radius: 16px; font-weight: bold; font-size: 12px; margin-bottom: 6px; }
.journey-node.highlight .journey-year { background: linear-gradient(135deg, #16a34a, #22c55e); }
.journey-title { font-size: 14px; font-weight: 700; color: #1e40af; margin-bottom: 4px; line-height: 1.3; }
.journey-desc { font-size: 12px; color: #6b7280; line-height: 1.4; }
.journey-node.highlight .journey-title { color: #166534; }
.journey-hl-tag { display: inline-block; margin-top: 6px; background: linear-gradient(90deg, #16a34a, #22c55e); color: white; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.journey-label { position: absolute; transform: translateX(-50%); text-align: center; }
@media (max-width: 768px) {
    .journey-track { width: 1200px; height: 340px; }
    .journey-card { width: 160px; padding: 10px 12px; }
    .journey-title { font-size: 13px; }
    .journey-desc { font-size: 11px; }
}
@media (max-width: 480px) {
    .journey-track { width: 1000px; height: 300px; }
    .journey-card { width: 130px; padding: 8px 10px; }
    .journey-title { font-size: 12px; }
    .journey-desc { font-size: 10px; }
    .journey-year { font-size: 10px; padding: 2px 8px; }
}

/* About page - 3D Certificate Carousel */
.cert-carousel-3d { position: relative; width: 100%; height: 280px; display: flex; align-items: center; justify-content: center; perspective: 1000px; user-select: none; overflow: hidden; padding: 0 30px; }
.cert-carousel-3d-track { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; overflow: hidden; }
.cert-slide-3d { position: absolute; top: 50%; left: 50%; width: 220px; height: 180px; margin-left: -110px; margin-top: -90px; transition: all 0.55s cubic-bezier(0.22, 0.61, 0.36, 1); cursor: pointer; will-change: transform, opacity; }
.cert-slide-inner-3d { width: 100%; height: 100%; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.25); border: 2px solid rgba(219, 234, 254, 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; transition: all 0.5s ease; }
.cert-slide-inner-3d img { max-width: 100%; max-height: 70%; object-fit: contain; border-radius: 4px; }
.cert-slide-label-3d { margin-top: 4px; font-size: 10px; font-weight: 600; color: #1e40af; letter-spacing: 0.3px; }
.cert-slide-3d.active .cert-slide-inner-3d { border-color: #2563eb; box-shadow: 0 16px 36px -10px rgba(37, 99, 235, 0.4); }
.cert-nav-3d { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 1px solid #dbeafe; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; transition: all 0.3s ease; box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.2); color: #2563eb; }
.cert-nav-3d:hover { background: #2563eb; color: white; transform: translateY(-50%) scale(1.05); }
.cert-prev-3d { left: 0; }
.cert-next-3d { right: 0; }
.cert-dots-3d { display: flex; justify-content: center; gap: 5px; margin-top: 4px; }
.cert-dot-3d { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: all 0.3s ease; }
.cert-dot-3d.active { background: #2563eb; width: 16px; border-radius: 3px; }

/* Contact page - CF7 form styling to match HTML prototype */
.wpcf7-form { display: flex; flex-direction: column; gap: 1.25rem; }
.wpcf7-form .custom_contact_style { display: flex; flex-direction: column; gap: 1.25rem; }
.wpcf7-form .row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.wpcf7-form .col { flex: 1; min-width: 0; }
.wpcf7-form .col-inner { display: block; }
.wpcf7-form p { margin: 0; padding: 0; }
.wpcf7-form .cus_contact_form_bottom { display: block; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-form label { display: block; font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 0.5rem; }
.wpcf7-form .wpcf7-form-control-wrap input[type="text"],
.wpcf7-form .wpcf7-form-control-wrap input[type="email"],
.wpcf7-form .wpcf7-form-control-wrap input[type="tel"],
.wpcf7-form .wpcf7-form-control-wrap textarea,
.wpcf7-form .wpcf7-form-control-wrap select {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.875rem; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box;
}
.wpcf7-form .wpcf7-form-control-wrap input:focus,
.wpcf7-form .wpcf7-form-control-wrap textarea:focus,
.wpcf7-form .wpcf7-form-control-wrap select:focus {
    border-color: #3b82f6; outline: none; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.wpcf7-form input[type="submit"] {
    width: 100%; background: linear-gradient(to right, #2563eb, #22c55e); color: white; padding: 1rem; border-radius: 0.5rem; font-weight: 700; font-size: 1.125rem; border: none; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.3);
}
.wpcf7-form input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4); }

/* CF7 form: stack to single column on small screens */
@media (max-width: 640px) {
    .wpcf7-form .row { flex-direction: column; gap: 1.25rem; }
    .wpcf7-form .col { width: 100%; }
}

/* About page map case thumbnails responsive */
.map-case-thumb { width: 140px; height: 98px; }
@media (max-width: 768px) {
    .map-case-thumb { width: 90px; height: 63px; }
}
@media (max-width: 480px) {
    .map-case-thumb { width: 70px; height: 49px; }
}

/* Contact page - FAQ Accordion */
.faq-item { transition: all 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding-top: 12px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* Product Category page - spec card */
.product-spec-card { transition: all 0.3s ease; }
.product-spec-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -8px rgba(37,99,235,0.2); }
.product-spec-card .spec-panel { display: none; }
.product-spec-card .spec-chevron { transition: transform 0.3s ease; }

/* Solutions page styles */
.solution-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -30px rgba(30, 64, 175, 0.45);
    border-color: rgba(59, 130, 246, 0.38);
}

.image-shell {
    position: relative;
    overflow: hidden;
}
.image-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(34, 197, 94, 0.08));
    opacity: 0;
    transition: opacity 0.35s ease;
}
.solution-card:hover .image-shell::after { opacity: 1; }
.solution-card:hover .solution-img { transform: scale(1.055); }
.solution-img { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

.solution-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.chain-node {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid #bfdbfe;
}
.chain-arrow {
    color: #22c55e;
    font-weight: 800;
}
.result-badge {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 1rem 1.125rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.72);
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.8);
}

/* Accent colors for solution cards */
.solution-card[data-accent="green"] { border-color: rgba(34, 197, 94, 0.22); }
.solution-card[data-accent="cyan"] { border-color: rgba(6, 182, 212, 0.22); }
.solution-card[data-accent="amber"] { border-color: rgba(245, 158, 11, 0.25); }
.solution-card[data-accent="indigo"] { border-color: rgba(99, 102, 241, 0.22); }
.solution-card[data-accent="emerald"] { border-color: rgba(16, 185, 129, 0.24); }
.solution-card[data-accent="violet"] { border-color: rgba(139, 92, 246, 0.22); }

.solution-card[data-accent="green"] .chain-node { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.solution-card[data-accent="cyan"] .chain-node { background: #ecfeff; border-color: #a5f3fc; color: #155e75; }
.solution-card[data-accent="amber"] .chain-node { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.solution-card[data-accent="indigo"] .chain-node { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.solution-card[data-accent="emerald"] .chain-node { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.solution-card[data-accent="violet"] .chain-node { background: #f5f3ff; border-color: #ddd6fe; color: #5b21b6; }

.solution-card[data-accent="green"] .result-badge { background: linear-gradient(135deg, rgba(21, 128, 61, 0.78), rgba(30, 64, 175, 0.72)); }
.solution-card[data-accent="cyan"] .result-badge { background: linear-gradient(135deg, rgba(14, 116, 144, 0.78), rgba(30, 64, 175, 0.72)); }
.solution-card[data-accent="amber"] .result-badge { background: linear-gradient(135deg, rgba(146, 64, 14, 0.78), rgba(30, 64, 175, 0.72)); }
.solution-card[data-accent="indigo"] .result-badge { background: linear-gradient(135deg, rgba(67, 56, 202, 0.78), rgba(30, 64, 175, 0.72)); }
.solution-card[data-accent="emerald"] .result-badge { background: linear-gradient(135deg, rgba(5, 150, 105, 0.78), rgba(30, 64, 175, 0.72)); }
.solution-card[data-accent="violet"] .result-badge { background: linear-gradient(135deg, rgba(109, 40, 217, 0.78), rgba(30, 64, 175, 0.72)); }

.solution-copy {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
}
.solution-copy::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border-radius: 1.5rem;
    background: radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.08), transparent 34%), radial-gradient(circle at 8% 92%, rgba(34, 197, 94, 0.08), transparent 32%);
    pointer-events: none;
}
.solution-copy > * {
    position: relative;
    z-index: 1;
}

/* Solution detail page styles */
.solution-hero-gradient {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0fdf4 100%);
}
.solution-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.solution-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    border: 2px solid #dbeafe;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    min-width: 100px;
}
.solution-flow-arrow {
    color: #22c55e;
    font-size: 1.5rem;
    font-weight: bold;
}
.pain-point-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0.25rem;
}
.solution-benefit-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}
.solution-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.2);
    border-color: #3b82f6;
}
.case-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.25);
}

/* Reveal animation for solutions */
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-mt-24 {
    scroll-margin-top: 6rem;
}

/* Solutions page - View Solution Details button (ensure visibility when Tailwind bg utilities fail) */
.btn-view-details {
    background-image: linear-gradient(to right, #1e40af 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.45) !important;
}
.btn-view-details:hover {
    background-image: linear-gradient(to right, #1e3a8a 0%, #1d4ed8 100%) !important;
    box-shadow: 0 15px 30px -8px rgba(29, 78, 216, 0.6) !important;
}

/* Solutions page - Hero primary CTA button (blue-green gradient, more prominent) */
.btn-hero-primary {
    background-image: linear-gradient(to right, #1e40af 0%, #1d4ed8 50%, #16a34a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 15px 30px -8px rgba(29, 78, 216, 0.5) !important;
}
.btn-hero-primary:hover {
    background-image: linear-gradient(to right, #1e3a8a 0%, #1d4ed8 50%, #15803d 100%) !important;
    box-shadow: 0 20px 35px -10px rgba(29, 78, 216, 0.6) !important;
}

/* Solutions page - Solution Map card links */
.solution-map-link {
    background-color: #eff6ff !important;
    border-left: 4px solid #2563eb !important;
}
.solution-map-link:hover {
    background-color: #2563eb !important;
    border-color: #1e40af !important;
}
.solution-map-link:hover .map-link-label {
    color: #ffffff !important;
}
.solution-map-link:hover .map-link-name {
    color: #dbeafe !important;
}

/* Solutions page - Pain point filter buttons (6 buttons in "What problem" section) */
.btn-filter-pain {
    background-color: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}
.btn-filter-pain:hover {
    background-color: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -6px rgba(29, 78, 216, 0.45) !important;
}

/* Solutions page - Hero Contact Us (outline style button) */
.btn-outline-contact {
    background-color: #ffffff !important;
    color: #1d4ed8 !important;
    border: 2px solid #bfdbfe !important;
    transition: all 0.2s ease !important;
}
.btn-outline-contact:hover {
    background-color: #eff6ff !important;
    border-color: #1d4ed8 !important;
    color: #1e40af !important;
    box-shadow: 0 8px 20px -6px rgba(29, 78, 216, 0.35) !important;
}

/* Solutions page - Ask About a Custom Solution (text-link style with accent) */
.btn-ask-custom {
    background-color: transparent !important;
    color: #1d4ed8 !important;
    border-left: 3px solid #1d4ed8 !important;
    padding-left: 1rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}
.btn-ask-custom:hover {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    border-left-width: 5px !important;
    padding-left: 0.85rem !important;
}

/* Solutions page - Stats cards (4 cards: countries, experience, modules, support) */
.stats-card {
    background-image: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #dcfce7 100%) !important;
    border: 1px solid #93c5fd !important;
    box-shadow: 0 8px 20px -8px rgba(29, 78, 216, 0.2) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    overflow: hidden;
    position: relative;
}
.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    pointer-events: none;
}
.stats-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px -10px rgba(29, 78, 216, 0.3) !important;
}
.stats-card .stats-number {
    color: #1e40af !important;
    position: relative;
    z-index: 1;
}
.stats-card .stats-label {
    color: #1e3a8a !important;
    position: relative;
    z-index: 1;
}

/* Navigation Dropdown Styles */
.nav-dropdown { position: relative; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    pointer-events: auto;
}
.nav-dropdown > a { position: relative; }
.nav-dropdown > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1d4ed8;
    transition: width 0.25s ease;
}
.nav-dropdown:hover > a::after { width: 100%; }

/* Solution Detail - Horizontal Process Flow */
.process-flow-card {
    width: 180px;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.process-flow-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.process-flow-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #1e293b;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 10px;
    min-height: 28px;
    display: flex;
    align-items: center;
}
.process-flow-image {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    background: #f1f5f9;
}
.process-flow-image img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}
.process-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
}

