/* Start custom CSS for html, class: .elementor-element-0709c1c *//* ===================================
   SCHOLARSHIP RECIPIENTS PAGE STYLING (FULLY ADAPTIVE IMAGES)
   =================================== */

/* Main Container */
.scholarship-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    background: #ffffff;
}

/* Page Header */
.scholarship-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 50px 30px;
    background: linear-gradient(135deg, #720000 0%, #7c1000 50%, #d39b00 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(114, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.scholarship-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.scholarship-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Students Grid */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Student Card */
.student-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out both;
    display: flex;
    flex-direction: column;
}

.student-card:nth-child(1) { animation-delay: 0.1s; }
.student-card:nth-child(2) { animation-delay: 0.2s; }
.student-card:nth-child(3) { animation-delay: 0.3s; }
.student-card:nth-child(4) { animation-delay: 0.4s; }
.student-card:nth-child(5) { animation-delay: 0.5s; }
.student-card:nth-child(6) { animation-delay: 0.6s; }
.student-card:nth-child(7) { animation-delay: 0.7s; }

.student-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(114, 0, 0, 0.15);
    border-color: #720000;
}

/* Profile Photo Section - ADAPTIVE HEIGHT */
.profile-photo-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #720000 0%, #d39b00 100%);
}

.profile-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s ease;
    max-height: 400px;
}

.student-card:hover .profile-photo {
    transform: scale(1.02);
}

/* Overlay Badge */
.university-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(114, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

/* Card Content */
.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Student Name */
.student-name {
    font-size: 22px;
    font-weight: 700;
    color: #720000;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.3;
}

/* University Name */
.university-name {
    font-size: 16px;
    font-weight: 600;
    color: #d39b00;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Testimonial */
.testimonial {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 20px;
    flex: 1;
}

/* Gallery Section - FULLY ADAPTIVE */
.photo-gallery {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-items: flex-start;
}

.gallery-photo {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(114, 0, 0, 0.2);
}

.gallery-photo img {
    width: 100%;
    height: auto; /* Changed from fixed height */
    max-height: 150px; /* Maximum height to keep consistent */
    object-fit: contain; /* Changed from cover to contain */
    display: block;
}

/* ===================================
   ANIMATIONS
   =================================== */

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

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media screen and (max-width: 1024px) {
    .scholarship-container {
        padding: 40px 15px;
    }
    
    .scholarship-title {
        font-size: 36px;
    }
    
    .students-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .profile-photo {
        max-height: 350px;
    }
    
    .gallery-photo img {
        max-height: 130px;
    }
}

@media screen and (max-width: 768px) {
    .scholarship-header {
        padding: 40px 20px;
    }
    
    .scholarship-title {
        font-size: 30px;
    }
    
    .students-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .profile-photo {
        max-height: 400px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .student-name {
        font-size: 20px;
    }
    
    .testimonial {
        font-size: 14px;
    }
    
    .gallery-photo img {
        max-height: 120px;
    }
}

@media screen and (max-width: 480px) {
    .scholarship-container {
        padding: 30px 10px;
    }
    
    .scholarship-header {
        padding: 30px 15px;
    }
    
    .scholarship-title {
        font-size: 24px;
    }
    
    .profile-photo {
        max-height: 300px;
    }
    
    .card-content {
        padding: 18px;
    }
    
    .student-name {
        font-size: 18px;
    }
    
    .university-badge {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .testimonial {
        font-size: 13px;
    }
    
    .photo-gallery {
        flex-direction: column;
        gap: 8px;
    }
    
    .gallery-photo img {
        max-height: 200px;
        width: 100%;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .scholarship-container {
        padding: 20px;
    }
    
    .scholarship-header {
        background: #720000;
        box-shadow: none;
    }
    
    .student-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .profile-photo,
    .gallery-photo img {
        max-height: none;
    }
}/* End custom CSS */