
/* Hero Section */
.ved-about-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(13, 81, 132, 0.5) 100%), 
                url('https://images.pexels.com/photos/3825572/pexels-photo-3825572.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0 80px;
    color: var(--secondary);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
	margin-top:5px;
}

.ved-about-hero:before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--secondary);
    transform: skewY(-3deg);
    z-index: 1;
}

.ved-about-hero h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.8s ease-out;
}

.ved-about-hero .lead {
    font-weight: 300;
    font-size: 1.25rem;
    opacity: 0.9;
    animation: slideUp 0.8s ease-out 0.2s;
    animation-fill-mode: backwards;
}

/* About Us Section */
.ved-about-us {
    padding: 40px 0;
    background-color: var(--light-gray);
    position: relative;
}

.ved-section-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    animation: fadeIn 0.8s ease-in-out;
}

.ved-section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
}

.modern-card {
    background: var(--secondary);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
}

.modern-card.company-profile {
    min-height: 320px;
}

.modern-card.mission-vision {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: max-height 0.4s ease;
}

.modern-card.mission-vision.expanded {
    max-height: 1500px;
}

.modern-card:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-card:nth-child(3) {
    animation-delay: 0.4s;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.modern-card h3 {
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.modern-card p {
    color: var(--dark-gray);
    font-size: 1rem;
    margin-bottom: 20px;
}

.modern-card.mission-vision p {
    display: block; /* or just remove 'display' */
    overflow: visible;
    text-overflow: unset;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    white-space: normal;
}

.modern-card.mission-vision.expanded p {
    -webkit-line-clamp: unset;
}

.modern-card .highlight {
    color: var(--accent);
    font-weight: 600;
}

.modern-card .see-more {
    background: var(--accent);
    color: var(--secondary);
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    align-self: flex-start;
}

.modern-card:hover .see-more {
    background: var(--accent);
    transform: scale(1.05);
	
}

/* Why Choose Us Section */
.ved-why-choose-us {
   
    background-color: var(--light-gray);
    position: relative;
}

/* Custom 5-column layout */
.five-cards-row {
    display: flex;
    flex-wrap: wrap;
	
}

.col-five {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 12px;
	margin-bottom: 20px;
}

.expertise-modern-card {
    background: var(--secondary);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expertise-modern-card .card-content {
    flex-grow: 1;
}

/* Animation delays */
.expertise-modern-card:nth-child(1) { animation-delay: 0s; }
.expertise-modern-card:nth-child(2) { animation-delay: 0.2s; }
.expertise-modern-card:nth-child(3) { animation-delay: 0.4s; }
.expertise-modern-card:nth-child(4) { animation-delay: 0.6s; }
.expertise-modern-card:nth-child(5) { animation-delay: 0.8s; }

.expertise-modern-card .icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.expertise-modern-card h4 {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.expertise-modern-card p {
    color: var(--dark-gray);
    font-size: 0.85rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.expertise-modern-card .learn-more {
    background: var(--accent);
    color: var(--secondary);
    border: none;
    padding: 8px 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .col-five {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 767.98px) {
    .col-five {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-five {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .ved-about-hero h1 {
        font-size: 2.5rem;
    }

    .modern-card.company-profile {
        min-height: 350px;
    }

    .modern-card.mission-vision {
        min-height: 240px;
    }

   
}

@media (max-width: 768px) {
    .ved-about-hero {
		margin-top:40px;
        padding: 120px 0 60px;
        background-attachment: scroll;
    }

    .ved-about-hero h1 {
        font-size: 2rem;
    }

    .ved-about-hero .lead {
        font-size: 1.1rem;
    }

    .ved-section-title {
        font-size: 2rem;
    }

    .modern-card.company-profile {
        min-height: 400px;
    }

    .modern-card.mission-vision {
        min-height: 260px;
    }

    
    .modern-card h3 {
        font-size: 1.6rem;
    }

   

    .modern-card .see-more{
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}