/* General Section Styling */
.about-us-section {
    padding: 40px 20px;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-us-section h2 {
    font-size: 28px;
    color: #dd3333; /* Consistent with footer headings */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.about-us-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1f3880; /* A complementary color */
    border-radius: 5px;
}

/* Introduction Section */
.about-us-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Image Album Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Team Slider Section (Basic Grid for now, JS for actual slider) */
.team-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.team-member {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #dd3333;
}

.team-member h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 14px;
    color: #777;
}

/* Partner Logos Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important; /* Adjusted minmax */
    gap: 10px !important; /* Adjusted gap */
    align-items: center;
    justify-items: center;
}

.partner-item {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
    border-color: #dd3333;
}

.partner-item img {
    max-width: 100%;
    height: 80px !important; /* Fixed height */
    object-fit: contain !important; /* Ensure entire logo is visible */
    display: block;
    border-radius: 50% !important; /* Made circular */
    transition: transform 0.3s ease; /* Keep existing transition */
}

.partner-item img:hover {
    /* No filter or opacity */
}

.partner-item h3 {
    font-size: 18px;
    color: #333;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-us-section {
        padding: 20px 15px;
    }

    .about-us-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .gallery-grid, .team-slider, .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .gallery-item img {
        height: 150px;
    }

    .team-member img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .gallery-grid, .team-slider, .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* Center page title on About Us page */
.page-template-page-about-us .entry-header .entry-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Slick Slider Center Mode Enhancement */
.team-slider .slick-slide {
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.5;
    transform: scale(0.85);
}

.team-slider .slick-center {
    opacity: 1;
    transform: scale(1);
}

.team-slider .team-member {
    text-align: center;
    padding: 20px;
}

.team-slider .team-member img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* VMS Cards Section */
.vms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vms-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vms-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.vms-card h3 {
    font-size: 22px;
    color: #dd3333;
    margin-bottom: 15px;
}

.vms-card h3 .fas {
    margin-right: 10px;
    color: #1f3880;
}

.vms-content {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* Services Section - Redesigned Full-Width Image */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

a.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    overflow: hidden; /* This is important to contain the image's corners */
    padding: 0; /* Remove all padding from the card itself */
}

a.service-card-link:hover .service-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: #dd3333;
}

.service-card-icon {
    padding: 0 !important; /* Force no padding */
    margin: 0 !important; /* Force no margin */
    line-height: 0; /* Remove extra space below image */
    display: block; /* Ensure it's a block element */
}

.about-us-section .services-grid .service-card .service-card-icon img {
    width: 100% !important; /* Force full width */
    height: 180px; /* Keep fixed height */
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
    transition: transform 0.3s ease;
    display: block;
}

a.service-card-link:hover .service-card-icon img {
    transform: scale(1.05);
}

.service-card-content-wrapper {
    padding: 20px; /* Add padding only to the content area */
    text-align: center;
}

.service-card h3 {
    font-size: 18px;
    color: #000000;
    font-weight: 600;
    margin: 0;
}