html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* fallback for older browsers */
@supports not (overflow: clip) {

    html,
    body {
        overflow-x: hidden;
    }
}

/* Service Card */
.service-card {
    border: 1px solid #e9ecef !important;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Shine Effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 107, 138, 0.05), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

/* Hover Effect */
.service-card:hover {
    transform: translateY(-12px) !important;
    transition-delay: 0s !important;
    box-shadow: 0 16px 40px rgba(219, 26, 26, 0.25);
    border-color: #2C687B !important;
}

/* Icon Wrapper */
.service-icon {
    animation: iconFloat 0.6s ease-out;
    position: relative;
    z-index: 2;
}

/* Icon Animation */
@keyframes iconFloat {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.service-icon i {
    transition: all .35s ease;
}

/* Icon Hover */
.service-card:hover .service-icon i {
    color: #2C687B !important;
}

/* Link */
.service-link {
    transition: all .35s ease;
    color: #DB1A1A !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.service-link i {
    transition: all .35s ease;
}

/* Link Hover */
.service-card:hover .service-link {
    gap: 12px;
    color: #2C687B !important;
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* Feature Box */
.rb-feature-box {
    /* light section box */
    padding: 25px 28px;
    position: relative;
    transition: all 0.35s ease;
    overflow: hidden;
}

/* LEFT BORDER (hidden initially) */
/* Feature Box */
.rb-feature-box {
    border: 1px solid #e9ecef !important;
    transition: all .35s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Left Border Animation */
.rb-feature-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 0%;
    width: 4px;
    background: #DB1A1A;
    /* your accent color */
    transition: height 0.35s ease;
    z-index: 2;
}

/* Hover Border Grow */
.rb-feature-box:hover::before {
    height: 100%;
}

/* Hover Card Effect */
.rb-feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 46px rgba(26, 107, 138, 0.12);
    border-color: rgba(26, 107, 138, 0.2) !important;
}

/* Icon Default */
.rb-feature-box i {
    transition: all .35s ease;
    color: #DB1A1A !important;
    /* force override bootstrap */
}

/* Icon Hover */
.rb-feature-box:hover i {
    color: #2C687B !important;
}

.testimonial-card {
    background: #ffffff;
    border-left: 4px solid #DB1A1A;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #11852a;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-section .btn {
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: .3s;
}

.social-icon:hover {
    background: #DB1A1A;
    color: #1C2B3A;
}

/*BACK TOP TOP*/
.back-top {
    padding: 14px 13px !important;
}

/* About Section */

/* Section Tag */
.section-tag {
    background: rgba(19, 80, 105, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
}

/* Divider Line */
.title-divider {
    width: 60px;
    height: 3px;
    background: #DB1A1A;
    border-radius: 10px;
}

/* Improve card text spacing */
.service-card h2 {
    letter-spacing: -1px;
}

/*Contact Form*/
/* =========================
SECTION BACKGROUND
========================= */
.contact-section {
    background: #f5f7f9;
}


/* =========================
CONTACT CARD
========================= */
.contact-card {
    border: 1px solid #e9ecef !important;
    border-radius: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Softer hover */
.contact-card:hover {
    transform: translateY(-8px) !important;
    border-color: #1A6B8A !important;
    box-shadow: 0 10px 25px rgba(26, 107, 138, 0.12);
}


/* =========================
MAP CARD
========================= */
.map-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}


/* =========================
FORM INPUTS
========================= */
.form-input {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 12px 14px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

/* Focus */
.form-input:focus {
    background: #ffffff;
    border-color: #1A6B8A;
    box-shadow: 0 0 0 0.15rem rgba(26, 107, 138, 0.08);
}

/* Bootstrap override */
.form-control:focus,
.form-select:focus {
    border-color: #1A6B8A !important;
    box-shadow: 0 0 0 0.15rem rgba(26, 107, 138, 0.08) !important;
}


/* =========================
INPUT GROUP
========================= */
.input-group-text {
    border-radius: 10px 0 0 10px;
    background: #eef1f4;
    border: 1px solid #dee2e6;
}

.rb-rounded{
    border-radius: 15px !important;
}


/* =========================
Icons Size
========================= */
.icon-size {
    font-size: x-small !important;
}
