/* About Section Main Styles */
body{
    background: linear-gradient(to top, #ce362e 0%, #26274f 100%)}
    
.about-section {
    padding: 120px 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
    animation: fadeIn 0.8s ease-out;
    background: whitesmoke;
}

/* Section Headings */
.about-section h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.about-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, 80%);
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about-section h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin: 2.5rem 0 1.5rem;
    position: relative;
}

.test {
    font-size: 2.4rem;
    color: var(--text-color);
    margin: 2rem 0 1rem;
    position: relative;
    padding-left: 2rem; /* Add left padding to move it right */
    text-align: left; /* Ensure left alignment */
}

.test::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 2rem; /* Change from right: 565px to left: 2rem */
    width: min(380px, 80%);
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transform: none; /* Remove the translateX that was shifting it */
}

.about-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

/* Main Content Paragraphs - Increased font size */
.about-section p {
    font-size: 1.2rem; /* Increased from 1.1rem */
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    max-width: 1000px; /* Increased from 900px */
    margin-left: auto;
    margin-right: auto;
}

/* About paragraphs */
.about-section > p {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    max-width: 1000px; /* Increased from 900px */
}

/* Team Section */
.team-section-wrapper {
    margin-top: 0.5rem;
    padding: 2rem 0;
    position: relative;
    background-color: #f2f2f8;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-top: 1px solid #e0e0e8;
    border-bottom: 1px solid #e0e0e8;
}

.team-section {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: 
      "mem1 mem2"
      "mem3 mem4"
      "mem5 mem5";
    gap: 3rem;
    padding: 2rem 0;
}

.team-section .team-member:nth-child(1) {
    grid-area: mem1;
}

.team-section .team-member:nth-child(2) {
    grid-area: mem2;
}

.team-section .team-member:nth-child(3) {
    grid-area: mem3;
}

.team-section .team-member:nth-child(4) {
    grid-area: mem4;
}

.team-section .team-member:nth-child(5) {
    grid-area: mem5;
}

/* For screens wider than 992px - show 2 on top, 3 on bottom */
@media screen and (min-width: 992px) {
    .team-section {
        grid-template-columns: repeat(6, 1fr);
        grid-template-areas: 
          "mem1 mem1 mem1 mem2 mem2 mem2"
          "mem3 mem3 mem4 mem4 mem5 mem5";
    }
}

.team-member {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform var(--transition-normal), 
                box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    transform-origin: left;
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Team Member Image */
.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    object-position: top center;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-normal);
}

.team-member:hover img {
    transform: scale(1.05);
}

/* Team Member Details */
.team-member h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.member-bio {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 1rem;
}

/* Mission & Vision Sections - Wider and less tall */
.mission-section,
.vision-section {
    position: relative;
    padding: 1.8rem 2.2rem; /* Reduced vertical padding */
    border-radius: 15px;
    margin: 2rem 0; /* Reduced margin */
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(46, 45, 136, 0.06);
    border: 1px solid rgba(46, 45, 136, 0.05);
    max-width: 1000px; /* Increased from 850px */
    margin-left: auto;
    margin-right: auto;
}

.mission-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    border-left: 5px solid var(--primary-color);
}

.vision-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    border-left: 5px solid var(--primary-color);
}

/* Adjust the heading spacing in mission/vision sections */
.mission-section h2,
.vision-section h2 {
    display: inline-block;
    padding-bottom: 8px; /* Reduced from 10px */
    position: relative;
    margin-bottom: 0.8rem; /* Added to reduce space after heading */
    margin-top: 0; /* Remove top margin */
}

/* Adjust paragraph spacing in mission/vision sections */
.mission-section p,
.vision-section p {
    margin-bottom: 0.8rem; /* Reduced from 1.5rem */
}

.mission-section h2::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(210px, 80%);
    height: 3px;
    border-radius: 1.5px;
}

.vision-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(180px, 80%);
    height: 3px;
    border-radius: 1.5px;
}

.mission-section h2::after {
    background-color: var(--primary-color);
}

.vision-section h2::after {
    background-color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    margin: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    border-radius: 15px;
    color: var(--light-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--light-text) !important;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin-top: 1rem;
    background: var(--accent-color);
    color: var(--light-text);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(228, 42, 36, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(228, 42, 36, 0.4);
    background: #f03c36;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color var(--transition-normal);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design for Desktop (1280px-1920px) */
@media screen and (min-width: 1280px) and (max-width: 1920px) {
    .about-section {
        padding: 120px 2rem 4rem;
        max-width: 1200px;
    }
    
    .about-section h1 {
        font-size: 3rem;
    }
    
    .about-section h2 {
        font-size: 2.4rem;
    }
    
    .about-section h3 {
        font-size: 1.8rem;
    }
    
    .about-section p {
        font-size: 1.25rem; /* Updated */
    }
    
    .team-member img {
        width: 180px;
        height: 180px;
    }
    
    .cta-section h2 {
        font-size: 2.5rem;
    }
    
    .cta-section p {
        font-size: 1.2rem;
    }
}

/* Responsive Design for Tablets (601px-1279px) */
@media screen and (min-width: 601px) and (max-width: 1279px) {
    .about-section {
        padding: 110px 1.5rem 3rem;
    }
    
    .about-section h1 {
        font-size: 2.5rem;
    }
    
    .about-section h2 {
        font-size: 2.1rem;
        margin: 2rem 0 1.2rem;
    }
    
    .about-section h3 {
        font-size: 1.6rem;
        margin: 1.2rem 0 0.8rem;
    }
    
    .about-section p {
        font-size: 1.15rem; /* Updated from 1rem */
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }
    
    .team-section-wrapper {
        margin-top: 3rem;
        padding: 1.5rem 0;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .team-section {
        margin-top: 2rem;
        gap: 2rem;
        padding: 1.5rem 0;
    }
    
    /* For tablets (601px-991px) */
    @media screen and (max-width: 991px) {
        .team-section {
            grid-template-columns: repeat(4, 1fr);
            grid-template-areas: 
              "mem1 mem1 mem2 mem2"
              "mem3 mem3 mem4 mem4"
              "mem5 mem5 mem5 mem5";
        }
    }
    
    .team-member {
        padding: 1.8rem;
    }
    
    .team-member img {
        width: 160px;
        height: 160px;
        margin-bottom: 1.2rem;
    }
    
    .team-member h3 {
        font-size: 1.4rem;
    }
    
    .mission-section,
    .vision-section {
        padding: 1.5rem 2rem; /* Adjusted padding */
        margin: 1.8rem 0; /* Reduced margin */
    }
    
    .cta-section {
        padding: 3.5rem 1.8rem;
        margin: 2.5rem 0;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }
    
    .cta-button {
        padding: 0.9rem 2.2rem;
        font-size: 1rem;
    }
    
    /* For smaller tablets (601px-900px) */
    @media screen and (max-width: 900px) {
        .about-section {
            padding: 100px 1.2rem 2.5rem;
        }
        
        .about-section h1 {
            font-size: 2.2rem;
        }
        
        .about-section h2 {
            font-size: 1.9rem;
        }
        
        .team-member {
            padding: 1.5rem;
        }
        
        .team-member img {
            width: 140px;
            height: 140px;
        }
        
        .mission-section,
        .vision-section {
            padding: 1.5rem 2rem;
            margin: 1.8rem 0;
        }
        
        .cta-section {
            padding: 3rem 1.5rem;
        }
        
        .cta-section h2 {
            font-size: 2rem;
        }
    }
}

/* Responsive Design for Mobile (360px-600px) */
@media screen and (min-width: 240px) and (max-width: 600px) {
    .about-section {
        padding: 90px 1rem 2rem;
        min-height: auto;
    }
    
    .about-section h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .about-section h1::after {
        width: 80px;
        height: 3px;
        bottom: -10px;
    }
    
    .about-section h2 {
        font-size: 1.7rem;
        margin: 1.8rem 0 1rem;
    }
    
    .about-section h3 {
        font-size: 1.4rem;
        margin: 1rem 0 0.7rem;
    }
    
    .about-section p {
        font-size: 1.05rem; /* Updated from 0.95rem */
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .team-section-wrapper {
        margin-top: 2rem;
        padding: 1rem 0;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .team-section {
        margin-top: 1.5rem;
        grid-template-columns: 1fr;
        grid-template-areas: 
          "mem1"
          "mem2"
          "mem3"
          "mem4"
          "mem5";
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .team-member::before {
        height: 3px;
    }
    
    .team-member img {
        width: 130px;
        height: 130px;
        margin-bottom: 1rem;
        border-width: 3px;
    }
    
    .team-member h3 {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }
    
    .team-member p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .member-bio {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .mission-section,
    .vision-section {
        padding: 1.2rem 1.5rem; /* Adjusted padding */
        margin: 1.2rem 0; /* Reduced margin */
    }
    
    .cta-section {
        padding: 2.5rem 1rem;
        margin: 2rem 0;
        border-radius: 10px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
        margin-top: 0.7rem;
    }
    
    .social-links {
        gap: 0.8rem;
        margin-top: 1.2rem;
    }
    
    .social-links a {
        font-size: 1.1rem;
    }
}

/* Extra small devices */
@media screen and (max-width: 359px) {
    .about-section {
        padding: 80px 0.8rem 1.5rem;
    }
    
    .about-section h1 {
        font-size: 1.8rem;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .about-section h3 {
        font-size: 1.3rem;
    }
    
    .about-section p {
        font-size: 1rem; /* Updated from 0.9rem */
    }
    
    .team-member {
        padding: 1.2rem;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .team-member h3 {
        font-size: 1.2rem;
    }
    
    .mission-section,
    .vision-section {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .cta-section {
        padding: 2rem 0.8rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}