/* Reusable UI Components */

/* Back to Top Button */
.back-to-top {
    background-color: #007AFF;
    text-decoration: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    z-index: 999;
    position: fixed;
    left: 32px;
    bottom: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 100%;
    box-shadow: none;
}

.back-to-top svg.icon__arrow-up {
    fill: white;
    width: 28px;
    height: 28px;
}

/* Product Card Modern (Home Page) */
.product-card-modern {
    background: #ffffff;
    border: 1px solid #f1f5f9; /* slate-100 */
    border-radius: 1.5rem;
    padding: 0; /* Removed padding to let header touch edges */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0; /* slate-200 */
}

.product-card-modern .icon-wrapper {
    width: 100%; /* Full width */
    height: 200px; /* Fixed height for header look */
    background: #183266; /* Dark Blue background */
    border-radius: 0; /* No radius, relies on card overflow */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0; /* No margin, content padding handles spacing */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card-modern:hover .icon-wrapper {
    background: #142850; /* Slightly darker on hover */
}

/* Shine Effect */
.product-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
    transition: none; /* Reset transition to allow instant reset on mouse leave */
}

.product-card-modern:hover::before {
    left: 125%;
    transition: all 0.75s ease-in-out;
}

.product-card-modern .icon-wrapper img {
    max-height: 65px !important; /* Adjusted size */
    width: auto;
    transition: transform 0.3s ease;
}

.product-card-modern:hover .icon-wrapper img {
    transform: scale(1.1);
}

.product-card-modern .card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    width: 100%;
}

.product-card-modern .card-title {
    font-weight: 700;
    color: #183266; /* dark-blue */
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
        }

.product-card-modern .card-text {
    color: #64748b; /* slate-500 */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-card-modern .learn-more-btn {
    color: #0d87ec; /* primary-blue */
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: transparent;
}

.product-card-modern:hover .learn-more-btn {
    background-color: #eff6ff;
    color: #0b74cc;
}

.product-card-modern .learn-more-btn i {
    transition: transform 0.3s ease;
}

.product-card-modern:hover .learn-more-btn i {
    transform: translateX(4px);
}

/* Contact Card (Contact Page) */
.contact-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--slate-100);
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: var(--primary-blue);
}
.icon-box {
    width: 80px;
    height: 80px;
    background-color: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-blue);
    font-size: 2rem;
    transition: all 0.3s ease;
}
.contact-card:hover .icon-box {
    background-color: var(--primary-blue) !important;
    color: white !important;
}
