/* Testimonies styles*/
/* Classic Testimonial List Layout */
.testimonial-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.testimonial-card {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-image {
    flex: 0 0 200px; /* Fixed width for image container */
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the square without distortion */
    display: block;
}

.testimonial-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-content h3 {
    margin: 0 0 5px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.testimonial-role {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.95rem;
    font-weight: 600;
}

.testimonial-text {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .testimonial-card {
        flex-direction: column;
    }
    .testimonial-image {
        flex: 0 0 250px; /* Height of image on mobile */
        width: 100%;
    }
}
/* Custom Styles */
.navbar-brand img {
    max-height: 50px;
}
#home-slider .carousel-item img {
    height: 60vh;
    object-fit: cover;
}
.footer {
    background-color: #f8f9fa;
}
/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
/* Calendar Event Colors */
.fc-event.is-holiday {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}
/* Homepage Cards Styling */
.homepage-card .card-header {
    background-color: #0d6efd;
    color: white;
}

.homepage-card .card-body {
    display: flex;
    flex-direction: column;
}

.homepage-card .list-group {
    border: none;
}

.homepage-card .list-group-item {
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
}

.homepage-card .gallery-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
}

.homepage-card .gallery-thumb:hover {
    transform: scale(1.05);
}
/*
 * Clearfix: Contain floats
 * This prevents floated elements (like your image) from breaking the layout.
 */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}
#contact-row {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap onto the next line on small screens */
  align-items: stretch; /* This is the key part */
}
#homePopup .modal-body img {
  width: 100% !important; /* Force the width to fill the container */
  max-width: 100% !important; /* Ensure it doesn't get bigger */
  height: auto !important; /* Maintain aspect ratio */
  object-fit: contain; /* Another good practice for controlling image size */
}
.counter-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    background-color: #e9e6ff; /* Light purple background */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer; /* Change mouse cursor to a pointer on hover */
    
    /* ✅ ADDED: This makes all changes (transform, shadow) animate smoothly */
    transition: all 0.3s ease-in-out;
}

.icon-wrapper i {
    font-size: 36px;
    color: #5c47d2; /* Main purple color */
    transition: color 0.3s ease-in-out; /* Smooth color change for the icon */
}

/* ✅ UPDATED: This block creates the hover animation */
.counter-item:hover .icon-wrapper {
    background-color: #5c47d2; /* Darker purple on hover */
    transform: translateY(-10px) scale(1.1); /* Lift up and grow */
    box-shadow: 0 15px 25px rgba(92, 71, 210, 0.2); /* Add a subtle shadow */
}

.counter-item:hover .icon-wrapper i {
    color: #fff; /* White icon on hover */
}

.counter-number {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.counter-text {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}