/* Insurance Page Styles */

/* Breadcrumb */
.breadcrumb-section {
    background: #f9fafb;
}

.breadcrumb-section a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Hero Banner Section */
.hero-banner {
    background: linear-gradient(to right, #fed7aa, #fef3c7);
}

/* Page Title Underline Animation */
.w-16 {
    animation: expandWidth 0.8s ease;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 4rem;
    }
}

/* Content Section */
.content-section p {
    line-height: 1.8;
    font-size: 1rem;
}

/* Insurance Cards */
.insurance-card {
    position: relative;
    transition: all 0.3s ease;
}

.insurance-card:hover {
    transform: translateY(-8px);
}

/* Card Image Hover Effect */
.insurance-card img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.insurance-card:hover img {
    transform: scale(1.1);
}

/* Card Title */
.insurance-card h3 {
    transition: color 0.3s ease;
}

.insurance-card:hover h3 {
    color: #1e3a8a;
}

/* Know More Button */
.insurance-card button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insurance-card button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.insurance-card button:hover::before {
    width: 300px;
    height: 300px;
}

.insurance-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card Shadow Depth */
.insurance-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.insurance-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Staggered Animation for Cards */
.insurance-card:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.insurance-card:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.insurance-card:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Image Animation */
.hero-banner img {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .insurance-card h3 {
        min-height: auto;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 1.875rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .insurance-card {
        margin-bottom: 1rem;
    }
    
    .insurance-card h3 {
        font-size: 1rem;
        min-height: auto;
    }
    
    .insurance-card button {
        font-size: 0.875rem;
        padding: 0.5rem 1.5rem;
    }
    
    .content-section p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 640px) {
    .hero-banner .grid {
        grid-template-columns: 1fr;
    }
    
    .hero-banner img {
        width: 100%;
        height: 12rem;
    }
}

/* Loading State for Images */
.insurance-card img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

.insurance-card img[src] {
    background: none;
}

/* Accessibility - Focus States */
.insurance-card button:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    .insurance-card button {
        display: none;
    }
    
    .insurance-card {
        break-inside: avoid;
    }
}

/* Hover Effect for Card Content */
.insurance-card .p-6 {
    transition: background-color 0.3s ease;
}

.insurance-card:hover .p-6 {
    background-color: #f9fafb;
}

/* Image Overlay Effect */
.insurance-card .relative::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insurance-card:hover .relative::after {
    opacity: 1;
}

/* Grid Gap Animation */
.grid {
    animation: gridFadeIn 0.8s ease;
}

@keyframes gridFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Content Animation */
.content-section {
    animation: fadeInContent 0.8s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Title Animation */
.content-section h2 {
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Card Border Hover Effect */
.insurance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 1rem;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.insurance-card:hover::before {
    border-color: #3b82f6;
}

/* Button Icon Animation (if you add icons later) */
.insurance-card button:hover {
    padding-right: 2rem;
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}