/* --- Strategic Services Hub & Components --- */

/* Services Grid (General) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Service Card (Hub Style) */
.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.service-card .icon-box {
    width: 70px;
    height: 70px;
    background: var(--secondary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* --- Decorative Shapes --- */
.deco-shape {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

/* --- Check Lists & Tech Lists --- */
.check-list,
.tech-list {
    list-style: none;
    padding: 0;
}

.check-list li,
.tech-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.check-list i,
.tech-list i {
    color: var(--secondary-color);
}

/* --- Tables (Levy Optimization) --- */
.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th,
.table-container td {
    text-align: left;
    padding: 15px;
}

/* --- Animations --- */
.fade-right {
    opacity: 0;
    animation: fadeRight 1s ease forwards;
}

.fade-left {
    opacity: 0;
    animation: fadeLeft 1s ease forwards;
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Hover Card (Index Page) --- */
.hover-card {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

.hover-card-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hover-card-content h3 {
    margin-bottom: 5px;
    color: var(--white);
}

.hover-card-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.hover-card:hover .hover-card-content p {
    opacity: 1;
    transform: translateY(0);
}

/* RNS Advantage Check List Fix */
.bg-dark .check-list,
.text-white .check-list {
    color: var(--white) !important;
}


/* --- Hero Glass Cards --- */
/* --- Hero Glass Cards --- */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    width: 280px;
    text-align: center;
    /* Changed to center */
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center flex items horizontally */
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.glass-card:nth-child(2) {
    animation-delay: 3s;
    /* Offset for second card */
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Standardized Form Styling (Clean & Uniform) --- */
.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea,
.file-upload-wrapper input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
    outline: none;
    box-shadow: none;
    /* Remove any glass/3D shadows */
}

/* Focus State */
.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(46, 191, 102, 0.1);
}

/* Custom Select Arrow Fix */
.contact-form-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

/* Mobile Input Group Integration */
.mobile-input-group select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
    background-color: #f8f9fa;
    /* Slightly distinct for country code */
}

.mobile-input-group input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


.glass-card:hover {
    animation-play-state: paused;
    /* Pause on hover so user can click easier */
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.glass-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    /* Ensure icon itself is centered if it behaves as block, though flex parent handles it */
}

.glass-content h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.glass-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.glass-content .btn-text {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Center content within button */
    gap: 8px;
    transition: var(--transition);
}

.glass-content .btn-text:hover {
    gap: 12px;
}