/* Media Hero Section */
.media-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/banner-ortho.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.media-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.media-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Media Gallery Styles */
.media-gallery {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-title {
    font-size: 2.2rem;
    font-weight: 800;
     color: #1E3A8A;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    text-align: center;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
     background: linear-gradient(to right, #1E3A8A, #600018);
    border-radius: 3px;
}

/* Bone animation styles */
.gallery-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 70px;
    width: 70px;
}

.gallery-left,
.gallery-right {
    position: absolute;
    z-index: 88;
    animation: floatBone 3s ease-in-out infinite;
}
.gallery-left {
    left: 0%;
    bottom: 0px;
    animation-delay: 0.5s;
}

.gallery-right {
    top: 0%;
    right: 0%;
    animation-delay: 1s;
}

@keyframes floatBone {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
    75% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative; 
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Hover overlay effect */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 78, 117, 0.8) 0%, rgba(32, 63, 95, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 2rem;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #001127 0%, #041b3a 100%);
    color: white;
    border-bottom: none;
}

.modal-body {
    padding: 0;
}

.modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    overflow: hidden;
    object-position: center;
}

/* AOS animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .media-hero h1 {
        font-size: 2.2rem;
    }
    
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-image {
        height: 100%
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .media-hero {
        padding: 70px 20px;
    }
    
    .media-hero h1 {
        font-size: 1.8rem;
    }
    
    .media-hero p {
        font-size: 1rem;
    }
}


/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    bottom: 15px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    text-decoration: none;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.7);
}
/* 
.whatsapp-link i {
    width: 100%;
    font-size: 32px;
    color: white;
} */
.icon-whatsapp{
 font-size: 32px !important;
    color: white !important;
}

/* Pulse animation for the WhatsApp icon */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-link {
        width: 55px;
        height: 55px;
    }
    
    .icon-whatsapp {
        font-size: 28px;
    }
}