/* ============================================= */
/* == 0. GLOBAL & SHARED STYLES == */
/* ============================================= */
:root {
    --wave-color-dark: #21417C;
    --wave-color-light: #4A5A8D;
    --light-bg: #f8f9fa;
    --section-bg-light: #eff3f9;
}

.animated-background {
    position: relative;
    overflow: hidden;
}

/* Shared Typography & Layout */
.section-title h2,
.join-us-section .section-title h2,
.contact-section-no-bg .section-title h2,
.about-us-section .section-title {
    font-size: 2.8rem;
    font-weight: 800;
}

.join-us-section .section-title,
.contact-section-no-bg .section-title {
    color: var(--wave-color-dark);
}

.about-us-content h3,
.feature-row-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--wave-color-dark);
    margin-bottom: 1.5rem;
}

.about-us-content p,
.feature-row-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
}

/* Shared Button Styles */
.btn-base {
    position: relative;
    display: inline-block;
    padding: 12px 35px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    background-size: 200%;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    text-align: center;
}

.btn-base:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
}

.btn-base::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

.btn-base:hover::before {
    left: 125%;
}

/* Feature Button Modifier */
.btn-feature {
    color: #fff;
    background: linear-gradient(90deg, #3b68d3, #5b86e5, #3b68d3);
    box-shadow: 0 0 10px rgba(91, 134, 229, 0.4);
}

.btn-feature:hover {
    box-shadow: 0 0 25px rgba(91, 134, 229, 0.8), 0 0 50px rgba(33, 65, 124, 0.5);
    color: #fff;
}

/* Join Button Modifier */
.btn-join {
    color: var(--wave-color-dark);
    background: linear-gradient(90deg, #ffffff, #dfe8ff, #ffffff);
    box-shadow: 0 0 10px rgba(33, 65, 124, 0.2);
    opacity: 0;
    transform: translateY(20px);
}

a.join-card {
    display: block;
    text-decoration: none;
}

.join-card:hover .btn-join {
    opacity: 1;
    transform: translateY(0);
}

.btn-join:hover {
    color: var(--wave-color-dark);
    box-shadow: 0 0 25px rgba(33, 65, 124, 0.3);
}


/* ============================================= */
/* == 1. ABOUT US SECTION STYLES == */
/* ============================================= */
.about-us-section {
    padding: 80px 0;
}

.about-us-section .section-title {
    color: var(--wave-color-dark);
    margin-bottom: 1rem;
}

.about-us-section .section-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
}

.about-us-image img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(33, 65, 124, 0.15);
}

.about-us-section .counter-item {
    color: var(--wave-color-dark);
    text-align: center;
}

.about-us-section .counter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-us-section .counter-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.about-us-section .counter-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.about-us-section .counter-plus {
    font-size: 1.8rem;
    font-weight: 600;
    margin-right: 4px;
}

.about-us-section .counter-label {
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

/* ================================================== */
/* == 2. IMAGE CARD (JOIN US) SECTION STYLES == */
/* ================================================== */
.join-us-section {
    padding: 80px 0;
    background-color: #fff;
}

.join-us-section .section-title {
    margin-bottom: 4rem;
}

.join-card {
    position: relative;
    min-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    /* background-size and background-position REMOVED */
}

@media (max-width: 991.98px) {
    .join-card {
        min-height: auto;
        aspect-ratio: 1 / 1;
    }
}

/* NEW STYLES for the <img> tag */
.join-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This replaces background-size: cover */
    transition: transform 0.4s ease;
    z-index: 1;
}

/* NEW hover effect for the image */
.join-card:hover .join-card-img {
    transform: scale(1.1);
}

.join-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.join-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    transition: all 0.4s ease;
    z-index: 2; /* Must be higher than the image's z-index */
    pointer-events: none; /* این خط را اضافه کنید */
}

.join-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(33, 65, 124, 0.4) 100%);
}

.join-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: #fff;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 3; /* Must be the highest z-index */
}

.join-card:hover .join-card-content {
    transform: translateY(0);
}

.join-card-content h5 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ======================================================= */
/* == 3. FEATURE ROWS SECTION STYLES == */
/* ======================================================= */
.feature-rows-section {
    padding: 30px 0;
}

.feature-row {
    padding: 4rem 0;
    align-items: center;
}

.feature-row:nth-child(odd) {
    background-color: var(--section-bg-light);
}

.feature-row-content p {
    margin-bottom: 2rem;
}

.feature-row-image {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(33, 65, 124, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-row-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(33, 65, 124, 0.25);
}

.feature-row-image img {
    transition: transform 0.4s ease;
}

.feature-row-image:hover img {
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .feature-row-content {
        text-align: center;
    }

    .feature-row-content.text-right {
        text-align: center !important;
    }

    .feature-row .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
}

/* ======================================================= */
/* == 4. CONTACT SECTION STYLES == */
/* ======================================================= */
.contact-section-no-bg {
    padding: 80px 0 120px 0;
    background-color: transparent;
}

.contact-section-no-bg .section-title {
    margin-bottom: 4rem;
}

.contact-section-no-bg .contact-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 32px 0 rgba(33, 65, 124, 0.1);
    color: #343a40;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 5;
}

.contact-section-no-bg .card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(33, 65, 124, 0.2) !important;
}

.contact-section-no-bg .contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--wave-color-dark);
}

.contact-section-no-bg h5 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-section-no-bg .contact-info {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.contact-section-no-bg .contact-info a {
    color: var(--wave-color-light);
    text-decoration: none;
    display: block;
    direction: ltr;
}

.contact-section-no-bg .contact-info a:hover {
    color: var(--wave-color-dark);
    text-decoration: underline;
}

.contact-section-no-bg .wave-svg-bottom {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 100px;
    pointer-events: none;
    z-index: 1;
}

/* ================================================ */
/* == 5. SHARED ANIMATIONS (WAVES & BUBBLES) == */
/* ================================================ */
.parallax use {
    animation: move-wave 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    fill: rgba(74, 90, 141, 0.7);
}

.parallax use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    fill: rgba(74, 90, 141, 0.5);
}

.parallax use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    fill: rgba(74, 90, 141, 0.3);
}

.parallax use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
    fill: var(--wave-color-light);
}

@keyframes move-wave {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.bubbles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    animation: animateBubbles 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.wave-section .bubbles li {
    background: rgba(255, 255, 255, 0.2);
}

.contact-section-no-bg .bubbles li {
    background: rgba(33, 65, 124, 0.15);
}

@keyframes animateBubbles {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 50%;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.bubbles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.bubbles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.bubbles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.bubbles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.bubbles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.bubbles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.bubbles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.bubbles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.bubbles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.bubbles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}