/* Responsive Card Styles */
.card-section {
    padding: 2rem 0;
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.custom-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    background: white;
    cursor: pointer;
    position: relative;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.custom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.custom-card:hover::before {
    opacity: 1;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    z-index: 2;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.custom-card:hover .card-title {
    color: #667eea;
}

.card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.custom-card:hover .card-text {
    color: #555;
}

.button.btn-secondary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.button.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.button.btn-secondary:hover::before {
    left: 100%;
}

.button.btn-secondary:hover {
    background: linear-gradient(45deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .card-body {
        height: 220px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-section {
        min-height: 80vh;
    }
}

@media (max-width: 992px) {
    .card-section {
        padding: 1.5rem 0;
        min-height: auto;
    }
    
    .card-body {
        height: auto;
        min-height: 200px;
    }
    
    .card-image-wrapper {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .card-section {
        padding: 1rem 0;
    }
    
    .custom-card {
        margin-bottom: 1.5rem;
    }
    
    .card-image-wrapper {
        height: 200px;
    }
    
    .card-body {
        padding: 1.25rem;
        min-height: 180px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .button.btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .card-section {
        padding: 0.5rem 0;
    }
    
    .card-image-wrapper {
        height: 180px;
    }
    
    .card-body {
        padding: 1rem;
        min-height: 160px;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .card-text {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .button.btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading animation */
.card-loading {
    position: relative;
    overflow: hidden;
}

.card-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Focus styles for accessibility */
.custom-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .custom-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .button.btn-secondary {
        background: #333 !important;
        color: white !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .custom-card {
        border: 2px solid #000;
    }
    
    .button.btn-secondary {
        background: #000 !important;
        color: #fff !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .custom-card,
    .card-img-top,
    .button.btn-secondary {
        transition: none;
    }
    
    .custom-card:hover {
        transform: none;
    }
    
    .custom-card:hover .card-img-top {
        transform: none;
    }
} 