/* Faculty Page Styles */
.faculty-main {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

/* Global Hero Icon Styling for Faculty Page */
.global-hero-subtitle i {
    color: #FF8C42 !important;
    font-size: 1.8rem !important;
    margin-right: 10px;
    display: inline-block;
}

.faculty-section {
    margin-bottom: 60px;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faculty-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 450px;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.faculty-image-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.faculty-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(1.1);
}

.faculty-card:hover .faculty-image {
    transform: scale(1.05);
}

.faculty-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-overlay {
    transform: translateY(0);
}

.faculty-name {
    font-size: var(--font-size-lg, 2rem);
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.faculty-title {
    font-size: var(--font-size-sm, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Lazy Loading Styles */
.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    opacity: 0;
}

.faculty-image.loaded {
    opacity: 1;
    transform: scale(1);
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Thank You Section */
.thank-you-section {
    background: linear-gradient(135deg, #0B4C7A 0%, #1a5f8a 100%);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.thank-you-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.thank-you-content {
    position: relative;
    z-index: 2;
}

.thank-you-icon {
    font-size: var(--font-size-3xl, 3.6rem);
    margin-bottom: 20px;
    color: #ffd700;
}

.thank-you-title {
    font-size: var(--font-size-2xl, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.thank-you-message {
    font-size: var(--font-size-md, 1.8rem);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.thank-you-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.thank-you-cta .btn {
    padding: 15px 30px;
    font-size: var(--font-size-base, 1.6rem);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.thank-you-cta .btn-primary {
    background: #ffd700;
    color: #0B4C7A;
    border: 2px solid #ffd700;
}

.thank-you-cta .btn-primary:hover {
    background: transparent;
    color: #ffd700;
    transform: translateY(-2px);
}

.thank-you-cta .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.thank-you-cta .btn-outline:hover {
    background: #fff;
    color: #0B4C7A;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faculty-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .faculty-card {
        height: 300px;
        background: transparent;
    }
    
    .faculty-image {
        object-fit: contain;
    }
    
    .faculty-image-container {
        background: transparent;
    }
    
    .faculty-name {
        font-size: var(--font-size-md, 1.8rem);
    }
    
    .faculty-title {
        font-size: var(--font-size-xs, 1.2rem);
    }
    
    .thank-you-title {
        font-size: var(--font-size-xl, 2.4rem);
    }
    
    .thank-you-message {
        font-size: var(--font-size-base, 1.6rem);
    }
    
    .thank-you-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-cta .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .global-hero-subtitle i {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .faculty-card {
        height: 280px;
        background: transparent;
    }
    
    .faculty-image {
        object-fit: contain;
    }
    
    .faculty-image-container {
        background: transparent;
    }
    
    .faculty-overlay {
        padding: 20px 15px 15px;
    }
    
    .faculty-name {
        font-size: var(--font-size-sm, 1.4rem);
    }
    
    .faculty-title {
        font-size: var(--font-size-xs, 1.2rem);
    }
    
    .global-hero-subtitle i {
        font-size: 1.1rem !important;
    }
}

/* Animation for cards */
.faculty-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.faculty-card:nth-child(1) { animation-delay: 0.1s; }
.faculty-card:nth-child(2) { animation-delay: 0.2s; }
.faculty-card:nth-child(3) { animation-delay: 0.3s; }
.faculty-card:nth-child(4) { animation-delay: 0.4s; }
.faculty-card:nth-child(5) { animation-delay: 0.5s; }
.faculty-card:nth-child(6) { animation-delay: 0.6s; }
.faculty-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for images - removed background */
.faculty-image.loaded {
    opacity: 1 !important;
    transform: scale(1) !important;
    background: none !important;
    animation: none !important;
}
