/* Coordinators Section Styles */
.coordinators-section {
    padding: 40px 0;
    width: 100%;
    overflow-x: hidden;
}

/* Coordinators Grid Styles */
.coordinators-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 equal columns */
    gap: 20px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    max-width: 1200px !important;
}

.coordinator-card {
    box-sizing: border-box;
    height: 100%;
}

/* Responsive adjustments - keeping 4 columns on desktop */
@media (max-width: 1200px) {
    .coordinators-grid {
        gap: 15px;
    }
}

@media (max-width: 991px) {
    .coordinators-section {
        padding: 30px 0;
    }
    
    .coordinators-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for tablets */
        gap: 15px !important;
    }
}

@media (max-width: 767px) {
    .coordinators-section {
        padding: 20px 0;
    }
    
    .coordinators-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .coordinator-name {
        font-size: 1.2rem !important;
    }
    
    .coordinator-designation {
        font-size: 0.9rem !important;
    }
    
    .coordinator-quote {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .coordinators-grid {
        grid-template-columns: 1fr !important; /* 1 column for mobile phones */
    }
    
    .coordinator-schedule-button {
        font-size: 0.9rem !important;
        padding: 8px 15px !important;
    }
}

/* Hide duplicate logo and tagline in hero section */
.hero-section .altare-logo,
.hero-section .logo-tagline,
.hero-section .logo-container img,
.hero-section .logo-container .logo-tagline {
    display: none !important;
}

/* No explicit positioning needed for responsive grid */

/* Coordinator card styling */
.coordinator-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0; /* Prevent flex items from overflowing */
}

.coordinator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.coordinator-image-container {
    height: 300px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .coordinator-image-container {
        height: 280px;
    }
}

.coordinator-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Default positioning */
    transition: transform 0.5s ease;
}

/* Specific adjustment for Christina's image (first column) */
table td:nth-child(1) .coordinator-image {
    object-position: center -200px; /* Move Christina's image up to maximum */
}

/* Specific adjustment for Nicole's image (second column) */
table td:nth-child(2) .coordinator-image {
    object-position: center -220px; /* Move Nicole's image up to maximum */
}

.coordinator-card:hover .coordinator-image {
    transform: scale(1.05);
}

.coordinator-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (min-width: 992px) {
    .coordinator-content {
        padding: 1rem;
    }
}

.coordinator-name {
    font-family: 'Giaza', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a4697;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.coordinator-designation {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #F3471F;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(243, 71, 31, 0.2);
    padding-bottom: 0.75rem;
}

.coordinator-quote {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

@media (min-width: 992px) {
    .coordinator-name {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .coordinator-designation {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .coordinator-quote {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
}

.coordinator-schedule-button {
    display: inline-block;
    background-color: #F3471F;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.coordinator-schedule-button:hover {
    background-color: #d93b19;
    transform: translateY(-2px);
}

/* Mobile responsiveness adjustments */
@media (max-width: 767px) {
    .coordinator-card {
        margin-bottom: 1rem;
    }
    
    .coordinator-image-container {
        height: 250px;
    }
    
    .coordinator-name {
        font-size: 1.25rem;
    }
    
    .coordinator-quote {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .coordinator-schedule-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .coordinators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .coordinator-image-container {
        height: 280px;
    }
}
