/* Awards & Recognition Page Styles */

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

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

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

/* Award Card */
.award-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.award-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Award Image Container */
.award-image-container {
    position: relative;
    height: 16rem;
}

.award-image-container img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-card:hover .award-image-container img {
    transform: scale(1.1);
}

/* Award Overlay */
.award-overlay {
    transition: opacity 0.4s ease;
}

/* Award Text */
.award-card h3 {
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.award-card p {
    transition: color 0.3s ease;
}

.award-card:hover p {
    color: #1e3a8a;
}

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

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

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

.award-card:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.25s both;
}

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

.award-card:nth-child(6) {
    animation: fadeInUp 0.6s ease 0.35s both;
}

.award-card:nth-child(7) {
    animation: fadeInUp 0.6s ease 0.4s both;
}

.award-card:nth-child(8) {
    animation: fadeInUp 0.6s ease 0.45s both;
}

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

/* View More Button */
.view-more-btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.view-more-btn:active {
    transform: translateY(0);
}

/* Line Clamp for Award Titles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .award-card h3 {
        font-size: 0.9rem;
    }
    
    .award-image-container {
        height: 12rem;
    }
}

/* Focus States for Accessibility */
.award-card:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.view-more-btn:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #fbbf24;
    color: #1e3a8a;
}

/* Loading State Animation */
.award-card img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print Styles */
@media print {
    .award-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .view-more-btn {
        display: none;
    }
    
    .award-overlay {
        display: none;
    }
}

/* Border Glow Effect on Hover */
.award-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.award-card:hover::before {
    opacity: 1;
}