/* General Setup */
:root {
    --primary-purple: #611F69;
    --gradient-start: #8253C2;
    --gradient-end: #F45346;
    --light-purple-bg: #F5F0FD;
    --dark-purple-bg: #833AAF;
    --text-dark: #333;
    --text-medium: #555;
}

body {
    font-family: 'Urbanist', sans-serif;
    margin: 0;
    background-color: #fff;
    color: #4A4A4A;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reusable Components */
.commu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.commu-section {
    padding: 6rem 0;
}

.commu-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.commu-heading-primary {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.commu-heading-secondary {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.commu-paragraph {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-medium);
    max-width: 550px;
}

.commu-highlight-gradient {
    background: linear-gradient(87deg, var(--gradient-start) 18.3%, var(--gradient-end) 80.97%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.commu-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.commu-btn-primary {
    background: var(--primary-purple);
    color: #fff;
}
.commu-btn-primary:hover {
    background: #4d1954;
    transform: translateY(-2px);
}

.commu-btn-secondary {
    background-color: #fff;
    color: var(--primary-purple);
    border-color: #ddd;
}
.commu-btn-secondary:hover {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

.commu-btn-dark {
    background: var(--primary-purple);
    color: #fff;
}
.commu-btn-dark:hover {
    background: #4d1954;
    transform: translateY(-2px);
}

.commu-text-center {
    text-align: center;
}

/* Animation Keyframes */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Section Appear Animation */
.commu-animate-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.commu-animate-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Hero Section */
.commu-hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.commu-hero-box {
    max-width: 1350px;
    margin: 0 auto;
    background: var(--light-purple-bg);
    border-radius: 24px;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.commu-hero-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.commu-hero-content {
    flex-basis: 50%;
    z-index: 10;
}

.commu-hero-assessed {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.commu-assessed-faces {
    display: flex;
}

.commu-assessed-faces img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: -15px;
}

.commu-hero-bg-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.commu-hero-bg-circles .circle {
    position: absolute;
    border-radius: 50%;
    background-color: #8253C2;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.commu-hero-bg-circles .circle-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.74);
}
.commu-hero-bg-circles .circle-2 {
    width: 450px;
    height: 450px;
    opacity: 0.1;
}

.commu-assessed-faces img:first-child {
    margin-left: 0;
}

.commu-hero-assessed p {
    margin: 0;
    font-weight: 500;
}

.commu-hero-image-area {
    flex-basis: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.commu-hero-main-img {
    max-width: 550px;
    position: relative;
    top: 5rem;
    z-index: 5;
}


/* Best Communication Section */
.commu-best-bg-section{
    background: #F8F6FE;
}

.commu-best-image-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 16px 16px;
    padding: 2rem;
    border-radius: 24px;
}
.commu-best-image-wrapper {
    position: relative;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.commu-best-main-img {
    border-radius: 16px;
}
.commu-person-icon {
    position: absolute;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid #fff;
    animation: floatAnimation 5s ease-in-out infinite;
}
.commu-person-icon-1 { top: -30px; left: 20%; animation-delay: 0.5s; }
.commu-person-icon-2 { top: 30%; left: -40px; animation-delay: 1s; }
.commu-person-icon-3 { top: 50%; right: -30px; animation-delay: 1.5s; }
.commu-person-icon-4 { bottom: 10%; right: -40px; animation-delay: 0.2s; }
.commu-person-icon-5 { bottom: -20px; left: 40%; animation-delay: 0.8s; }

/* --- NEW CSS for Best Skills Section Desktop Layout --- */
.best-skills-grid {
    align-items: start; /* Align items to the top */
}
.best-skills-grid .commu-heading-secondary span{
 top:40px;
}
.best-skills-grid .commu-best-image-area {
    grid-column: 1;
    grid-row: 1 / 3; /* Make image span both rows */
}
.best-skills-grid .commu-heading-secondary {
    grid-column: 2;
    grid-row: 1;
}
.best-skills-grid .commu-paragraph {
    grid-column: 2;
    grid-row: 2;
}


/* What Are Tests Section */
.commu-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.commu-list-item {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.commu-what-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.commu-what-main-img {
    border-radius: 20px;
    position: relative;
    z-index: 5;
}

.commu-what-bg-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.commu-what-bg-circles .circles {
    position: absolute;
    border-radius: 50%;
    background-color: #8253C2;
    top: 40%;
    left: 60%;
    transform: translate(-50%, -50%);
}

.commu-what-bg-circles .circles-1 {
    width: 400px;
    height: 400px;
    opacity: 0.1;
}
.commu-what-bg-circles .circles-2 {
    width: 280px;
    height: 280px;
    opacity: 1;
    background-color: #fff;
}

.commu-banner {
    background: #EFE9F0;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}
.commu-banner p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #5B0D5C;
}
.commu-banner-buttons {
    display: flex;
    gap: 1rem;
}


/* Types of Tests Section */
.commu-skills-section{
    background: #F7F2FF;
}

.commu-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}
.commu-type-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 2px 6px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.commu-type-card svg{
    margin-bottom: 1.5rem;
}

.commu-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.commu-type-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-purple);
}
.commu-type-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
}


/* Why Use MyAnatomy's Section */
.commu-dark-purple-bg {
    background: var(--dark-purple-bg);
}
.commu-why-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}
.commu-why-header .commu-heading-secondary {
    flex-basis: 60%;
    margin: 0;
}
.commu-why-header .commu-subheading-white {
    flex-basis: 40%;
    margin: 0;
    max-width: none;
}
.commu-text-white {
    color: #fff;
}
.commu-subheading-white {
    color: #E9D5FF;
    font-size: 1.125rem;
    line-height: 1.7;
}
.commu-stats-box {
    background-color: #fff;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.commu-stat-item {
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
}
.commu-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background-color: #e5e7eb;
}
.commu-stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: #66A349;
}
.commu-stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-top: 0.5rem;
    display: block;
}

/* CTA Section */
.commu-cta-box {
    max-width: 1350px;
    margin: 0 auto;
    background: linear-gradient(35deg, rgba(225, 244, 255, 0.60) 12%, rgba(249, 225, 255, 0.80) 27%, rgba(255, 230, 233, 0.60) 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
}
.commu-cta-heading {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}
.commu-cta-subheading {
    color: var(--text-medium);
    font-size: 1.2rem;
    margin: 0 auto 2rem auto;
}

/* ------------------------- */
/* Responsive Design Changes */
/* ------------------------- */

/* For Tablets and smaller desktops */
@media (max-width: 992px) {
    .commu-grid-2col {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center; /* Center align text in grid columns */
    }

    .commu-paragraph {
        margin-left: auto;
        margin-right: auto;
    }

    .commu-hero-flex-container {
        flex-direction: column;
        text-align: center;
    }
    
    .commu-hero-content {
        order: 1;
    }
    .commu-hero-image-area {
        order: 2;
        margin-top: 2rem;
    }
    
    .commu-hero-assessed {
        justify-content: center; /* Center the assessed candidates block */
        flex-direction: column; /* Stack faces and text vertically */
    }

    /* --- FIX: Reorder for "Best Communication" section on mobile --- */
    .best-skills-grid {
        align-items: center; /* Re-center items when in single column */
    }
    /* Reset desktop grid settings */
    .best-skills-grid .commu-best-image-area,
    .best-skills-grid .commu-heading-secondary,
    .best-skills-grid .commu-paragraph {
        grid-column: 1;
        grid-row: auto;
    }
    /* Apply mobile order */
    .best-skills-grid .commu-heading-secondary {
        order: 1;
    }
    .best-skills-grid .commu-best-image-area {
        order: 2;
    }
    .best-skills-grid .commu-paragraph {
        order: 3;
        margin-top: 0;
    }

    .commu-what-bg-circles{
        display: none;
    }
    
    .what-section-grid .commu-content-block {
        order: 1;
    }
    .what-section-grid .commu-what-image-wrapper {
        order: 2;
    }
    .commu-list {
        text-align: left; /* Keep list items left-aligned */
        max-width: 400px; /* Constrain width of the list */
        margin-left: auto;
        margin-right: auto;
    }

    .commu-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commu-stats-box {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .commu-stat-item:not(:last-child)::after {
        display: none; /* Hide dividers on stacked layout */
    }
     .commu-stat-item:not(:last-child) {
        border-bottom: 1px solid #e5e7eb;
    }

    .commu-banner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .commu-why-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    .commu-section { padding: 4rem 0; }
    .commu-container { padding: 0 1.5rem; }

    .commu-heading-primary { font-size: 2.25rem; }
    .commu-heading-secondary { font-size: 2rem; }
    .commu-cta-heading { font-size: 2rem; }

    .commu-hero-box {
        padding: 2rem 1.5rem;
    }

    .commu-types-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .commu-type-card {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }

    .commu-banner p { font-size: 1.1rem; }
    .commu-banner-buttons { 
        flex-direction: column; 
        width: 100%;
    }
    .commu-btn { 
        width: 100%; 
        box-sizing: border-box; 
        text-align: center;
    }

    .commu-person-icon {
        width: 45px;
        height: 45px;
    }
    .commu-person-icon-2 { left: -25px; }
    .commu-person-icon-3 { right: -25px; }
    .commu-person-icon-4 { right: -25px; }
}
