/* Investments 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, #fff7ed, #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;
}

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

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

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

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

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

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

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

.investment-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;
}

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

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

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

.investment-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 */
.investment-card:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

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

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

.investment-card:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.4s 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;
    }
}

/* Commission Details Section */
.commission-details-card {
    transition: all 0.3s ease;
}

.commission-details-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.commission-details-card .w-12 {
    transition: all 0.3s ease;
}

.commission-details-card:hover .w-12 {
    transform: scale(1.1);
    background: #dbeafe;
}

/* Commission Link Hover */
.commission-details-card a {
    position: relative;
}

.commission-details-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e3a8a;
    transition: width 0.3s ease;
}

.commission-details-card a:hover::after {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .investment-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;
    }
    
    .investment-card {
        margin-bottom: 1rem;
    }
    
    .investment-card h3 {
        font-size: 1rem;
        min-height: auto;
    }
    
    .investment-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;
    }
    
    .commission-details-card {
        padding: 1rem;
    }
    
    .commission-details-card .w-12 {
        width: 2.5rem;
        height: 2.5rem;
    }
}

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

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

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

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

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

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

/* Image Overlay Effect */
.investment-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;
}

.investment-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);
    }
}

/* Commission Details Icon Animation */
.commission-details-card svg {
    transition: transform 0.3s ease;
}

.commission-details-card:hover svg {
    transform: scale(1.1) rotate(5deg);
}