.about-us > h1{
grid-column: span 12;
text-align: center;
}

.about-intro, .vis-mis{
    display: grid;
    grid-template-columns: subgrid;
    grid-column: span 12;
}

.about-intro > img{
    width: 100%;
    grid-column: span 12;
    height: 400px;
    border-radius: 10;
}


.stats-card{
    grid-column: span 3;
    background-color:var(--Primary) ;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    height: 200px ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
}



.stats-headings{
    font-size: 2.625rem;
    font-weight: 600;
}

.about-us > p{
    grid-column: span 12;
    text-align: center;
}

.about-us > h2{
    text-align: center;
}

.comp-info{
  line-height: 1.5;
  padding-bottom: 1.2rem;
  font-size: 1.1rem;
}

.vis-mis{
    background-color: var(--Primary);
    border-radius: 10px;
    padding: 4rem;
    color: #fff;
}

h3{
  padding: 1.2rem 0;
  color: #fff;
  
}

.vis-img {
  grid-column: 1 / 7; 
  max-height: 350px;/* right side */
  width: 100%;
  margin-bottom: 2rem;
}
.vision {
  grid-column: 7 / 13;  
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision > p, .mission > p {
  line-height: 1.5;
  padding-bottom: 1.2rem;
  font-size: 1.1rem;
}

.mission {
  grid-column: 1 / 7;  /* left side */
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mis-img {
  grid-column: 7 / 13; 
  max-height: 350px;/* right side */
  width: 100%;
}

/* ===== RESPONSIVE ABOUT US STYLES ===== */

/* Medium Desktop: 1200px - 992px */
@media (max-width: 1200px) {
    .stats-card {
        grid-column: span 3; /* Keep 4 columns */
        height: 180px;
        margin: 2rem 0;
    }
    
    .stats-headings {
        font-size: 2.3rem;
    }
    
    .vis-mis {
        padding: 3rem;
    }
    
    .about-intro > img {
        height: 350px;
    }
}

/* Tablet: 991px - 768px */
@media (max-width: 992px) {
    .stats-card {
        grid-column: span 6; /* 2 columns for tablets */
        height: 160px;
        margin: 1.5rem 0;
    }
    
    .stats-headings {
        font-size: 2rem;
    }
    
    .vis-mis {
        padding: 2.5rem;
    }
    
    .about-intro > img {
        height: 300px;
    }
    
    .vis-img, .mis-img {
        max-height: 300px;
    }
    
    .about-us > h1 {
        font-size: 3.2rem;
    }
    
    .about-us > h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.7rem;
    }
    
    .comp-info {
        font-size: 1rem;
    }
    
    .vision > p, .mission > p {
        font-size: 1rem;
    }
}

/* Mobile Landscape: 767px - 576px */
@media (max-width: 768px) {
    .stats-card {
        grid-column: span 6; /* 2 columns for mobile landscape */
        height: 140px;
        margin: 1rem 0;
    }
    
    .stats-headings {
        font-size: 1.8rem;
    }
    
    .vis-mis {
        padding: 2rem;
        display: block; /* Change from grid to block for stacking */
    }
    
    /* Stack vision section */
    .vis-img {
        grid-column: 1 / -1;
        width: 100%;
        max-height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .vision {
        grid-column: 1 / -1;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Stack mission section */
    .mission {
        grid-column: 1 / -1;
        grid-row: auto;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .mis-img {
        grid-column: 1 / -1;
        width: 100%;
        max-height: 250px;
    }
    
    .about-intro > img {
        height: 250px;
    }
    
    .about-us > h1 {
        font-size: 2.8rem;
    }
    
    .about-us > h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .comp-info {
        font-size: 0.95rem;
    }
    
    .vision > p, .mission > p {
        font-size: 0.95rem;
        text-align: center;
    }
    
    /* Remove line breaks in headings for mobile */
    .about-us > h1 br {
        display: none;
    }
}

/* Mobile Portrait: 575px and below */
@media (max-width: 576px) {
    .stats-card {
        grid-column: span 12; /* Stack stats cards vertically */
        height: 120px;
        margin: 0.8rem 0;
    }
    
    .stats-headings {
        font-size: 1.6rem;
    }
    
    .vis-mis {
        padding: 1.5rem;
    }
    
    .vis-img, .mis-img {
        max-height: 200px;
    }
    
    .about-intro > img {
        height: 200px;
    }
    
    .about-us > h1 {
        font-size: 2.4rem;
    }
    
    .about-us > h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .comp-info {
        font-size: 0.9rem;
    }
    
    .vision > p, .mission > p {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile: 399px and below */
@media (max-width: 400px) {
    .stats-card {
        height: 100px;
        margin: 0.6rem 0;
    }
    
    .stats-headings {
        font-size: 1.4rem;
    }
    
    .stats-card p:last-child {
        font-size: 0.9rem;
    }
    
    .vis-mis {
        padding: 1rem;
    }
    
    .vis-img, .mis-img {
        max-height: 180px;
    }
    
    .about-intro > img {
        height: 180px;
    }
    
    .about-us > h1 {
        font-size: 2rem;
    }
    
    .about-us > h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .comp-info {
        font-size: 0.85rem;
    }
    
    .vision > p, .mission > p {
        font-size: 0.85rem;
    }
}